How to Make an Automatic Door (Tween) - Roblox Studio Tutorial

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 148

  • @arty9651
    @arty9651 3 года назад +5

    Thank you so much for this! I've been through hundreds of scripts and this one finally worked and works so well! Greatly appreciated mate :D

    • @rienkoII
      @rienkoII 2 года назад +1

      It doesnt work for me?

    • @ragnarsek8775
      @ragnarsek8775 2 года назад +1

      same for me it doesn't work

  • @Personan642
    @Personan642 Год назад +3

    to add a closed sound add this model["Door2"]:Play() onto line 74.

  • @ArnavBhushanKulkarni-ex9xe
    @ArnavBhushanKulkarni-ex9xe 2 года назад +2

    You did it my Guy!!! I was trying to figure from last few days!!! you solved my problem

  • @frogg_nchips4517
    @frogg_nchips4517 3 года назад +1

    Hey.. I remember watching this guy a few years ago, he's improved! Nice job

  • @emealwin8188
    @emealwin8188 3 года назад +8

    It didnt work so i copied the script and then it still didnt work so i watched the video again i didnt get anything wrong

  • @egypt6868
    @egypt6868 3 года назад +3

    Great tutorial! This looks so cool!

  • @idkk839
    @idkk839 3 года назад +2

    Nice!! You are so good... you give free scripts and explain it even in the video! Not like others who tell 'Take the script from the description and copy paste it.' That way, we do not learn anything, you are the best!! If you would like to favorite this comment pls reply something so I know... thanks!

  • @innovationmilitarydivision
    @innovationmilitarydivision 3 года назад +1

    Lifesaver man, I haven’t seen a door tutorial that also showed me how to add sounds. It really helps.

    • @vxnae
      @vxnae 2 года назад

      yea right

  • @Anastasiatoons
    @Anastasiatoons 3 года назад +1

    I'm still can't belive there is a Person that make Vids. like that, great job. Can u show us next time how to make a list on what are items u need to collect and if u collect an item it says "equipped" or "collected" or something like this?

  • @choerrysmotion
    @choerrysmotion 2 года назад +8

    in case the doors don't open, scroll down to line 55 and either delete anything written that line, if you don't have a sound playing, or just change "Door" to whatever the name of your sound is. Then, try testing again, and it should work.

  • @armandistaken
    @armandistaken 3 года назад +4

    Ayy! What’s up! Ngl I actually need this door because I’m making a office tower, so thank you for this! 🔥🔥

  • @JharedPH
    @JharedPH 3 года назад +1

    Thanks Mike! This helps a lot

  • @_swet
    @_swet 3 года назад +4

    AMAZING Tutorial! Is it possible to show us how to make a custom inventory system? I'll gladly appreciate it. Keep up the great work!

  • @khalilahmed1514
    @khalilahmed1514 Год назад +1

    Im getting an error, it says it expected ")" to close the bracket at the tweeninfo part but it got "Enum" instead. Im sure i done it the same?

  • @notraqz
    @notraqz 3 года назад +1

    you deserve more views

  • @imBADatLIFE48
    @imBADatLIFE48 2 года назад

    Gday Mate This Is The Best Script For A Door I Have Ever Seen Lad I Cant Wait For More

  • @Iskimo_LM
    @Iskimo_LM 11 месяцев назад

    You can do frames with attachments too, i would say this may be better variant.
    Details: use attachment's world cframe to get frame where to move part

  • @m1lo908
    @m1lo908 3 года назад +2

    This is really good thank you. Also are you able to make a kill leader board. I’ve been trying to it’s really difficult

  • @Tony-tx2vb
    @Tony-tx2vb 3 года назад +1

    bro thx this helped JUST DROPPED A LIKE😎

  • @ultimategamer5569
    @ultimategamer5569 3 года назад +1

    I was just working on that thanks

  • @alhasanalsasa6451
    @alhasanalsasa6451 3 года назад +2

    Keep it up 👌

  • @reniki1053
    @reniki1053 2 года назад

    Thank you for actually making the script readable in the video lol.

  • @flame5226
    @flame5226 3 года назад +2

    plz help me. when i tested the finished product i saw this: Workspace.Model.Script:20: Expected ')' (to close '(' at line 13), got '0'

  • @IrrelevantDerp
    @IrrelevantDerp 2 года назад +1

    thanks mike

  • @EplusWookie
    @EplusWookie 3 года назад +1

    Thanks!!!

  • @evilkevin3651
    @evilkevin3651 2 года назад

    Really helped me out I just don't know how to make it so when theres multiple people in the game and somebody goes through it the whole audio plays in the whole map and not in a small area and ideas on how to fix it

  • @ItzLimee16
    @ItzLimee16 Год назад +1

    Help me please, mine isn't moving but the script doesn't say there is a mistake can you please help me somehow?

  • @rod5373
    @rod5373 3 года назад +4

    Hello, could anyone help me? When I try to make this work - it says 'Position is not a valid member of Model "Workspace.Door.TargetM"' in my Output view.

    • @leothetangogod
      @leothetangogod 2 года назад

      models dont have the "position" property, change it to a part

  • @tech-boy334
    @tech-boy334 2 года назад

    THX for helping, took me a while but i got a error message at line 55 i just deleted it and it worked!!! THX

  • @userpc5xx5yg9u
    @userpc5xx5yg9u 5 месяцев назад +1

    The Enum.Easingdirection.Out function is highlighted error for me, what should I do to correct it?

  • @GamerFox-j8n
    @GamerFox-j8n 3 года назад +1

    Good video

  • @allysya2570
    @allysya2570 3 года назад +1

    Hello, thank you for the video its really helpful! Anyway, do you know how to make an automatic door for elevator where players cannot get in if the elevator hasn’t come yet? Thank you!! :D

  • @walterthebest9671
    @walterthebest9671 2 года назад

    🎉🎉 good job.

  • @lyoovue5223
    @lyoovue5223 Год назад

    thank you very mch👍💯

  • @coolguy-lx3fy
    @coolguy-lx3fy 2 года назад

    IT KEEP SAYING POSITION IS NOT A VALID MEMBER OF MODEL “WORKSPACE.DOORMODEL.TARGETR”

  • @epicjan
    @epicjan Год назад

    how can you only make the automatic door with only a single part to move?
    (sorry if i'm bad at explaining btw nice video)

  • @N8xMYSTK
    @N8xMYSTK Год назад

    will other people see when you open a door as well?

  • @SM64_Mario
    @SM64_Mario 3 года назад +2

    It doesn't work help

  • @neecholass
    @neecholass 3 года назад +1

    Do you have any tips to make a game that changes when you rejoin?

  • @Sizlyk
    @Sizlyk 3 года назад +1

    I got the error, Door is not a valid member of Model "Workspace.Door". What do i do?

  • @some_random_merc
    @some_random_merc 2 года назад

    cool tutorial, it did not work at all but you're the greatest!

  • @lolgamegamebro
    @lolgamegamebro 2 года назад +1

    What should i do if it says " Trigger_in is not a valid member of model"?

  • @MAXXX2
    @MAXXX2 Год назад +1

    This doesn't work what did I do wrong???

  • @gabriel7723
    @gabriel7723 2 года назад +2

    Hi! Can someone help me? When i copy and paste the script and I join the game, go in to the trigger part in my output there is: Door is not a valid member of Model "Workspace.DoorModel" - Server - Script:55
    Stack Begin - Studio
    Script
    'Workspace.DoorModel.Script', Line 55 -
    function open - Studio - Script:55
    Stack End - Studio
    I dont know what to do :(
    (My door doesn't want to open)

    • @whitty985playz
      @whitty985playz Год назад

      try changing 'DoorModel' in the script or rename the model to 'DoorModel' you might have spelt it wrong or forgot a capital letter.

  • @exoticpineapple3
    @exoticpineapple3 3 года назад

    Good content: this. Bad content: the opposite of this.

  • @LootboxOfTruth
    @LootboxOfTruth Год назад

    It worked but is it supposed to play when closing aswell? If so then i did it wrong

  • @errorbugs5699
    @errorbugs5699 3 года назад +1

    Is there a way when you touch a block it gives 100 points, but then you would have to wait around 100 seconds to be able to get points again?

  • @domasze4936
    @domasze4936 3 года назад

    Nice video

  • @dripchimp5947
    @dripchimp5947 3 года назад

    can you make a video on how to make a story game please?

  • @BlazingImp77151
    @BlazingImp77151 3 года назад +1

    how would you go about turning this into a single sliding door? or one that slides up?
    How would you make it use a button instead of being automatic?
    Also, what if the door is multiple pieces? how does one go about making all of them slide together?

    • @alan_decker
      @alan_decker 2 года назад

      I have been trying to do one that slides up, but I just can't find out how

  • @Тагир-р3э
    @Тагир-р3э 3 месяца назад

    What color are you painting the wall?

  • @quit626
    @quit626 3 года назад +1

    Hello. I know it's a very weird question to ask but how do I finish editing the local script and the script will save into my game?

  • @PureEpic_soreal
    @PureEpic_soreal 3 года назад +1

    When i used the script, and tried to run it it says "Door is not a valid member of DoorModel" how do you fix this?

    • @TechwithMikeYT
      @TechwithMikeYT  3 года назад

      Did you name all the parts in the model correctly? Same as me?

    • @PureEpic_soreal
      @PureEpic_soreal 3 года назад

      @@TechwithMikeYT yes, i did

    • @miningandcraftinglover37
      @miningandcraftinglover37 2 года назад

      ik this is old but delete model["door"]Play()

    • @PureEpic_soreal
      @PureEpic_soreal 2 года назад

      @@miningandcraftinglover37 that took 8 months didn't it? i actually fixed it already but thanks!

  • @m3nt4ldudet1mmyyt9
    @m3nt4ldudet1mmyyt9 3 года назад +1

    can u make a script that works for parts or rigs instead of players

  • @ratprincess4996
    @ratprincess4996 2 года назад +1

    mine didnt work

  • @calum8215
    @calum8215 3 года назад +1

    Does anybody know how I could add a sound to the door opening/closing, using this script?

  • @VetxnBang
    @VetxnBang 2 года назад

    When you insert a part into a model it has something in it... What is it?

  • @baqonr2898
    @baqonr2898 3 года назад

    Ty

  • @froggyfrog7893
    @froggyfrog7893 3 года назад +1

    I've tried multiple times, checked it multiple times, still hasn't worked bud.

    • @TechwithMikeYT
      @TechwithMikeYT  3 года назад

      Can you check the output while you are testing it to see if you have any error messages bud

  • @jaylen3441
    @jaylen3441 3 года назад +1

    What if I want to have two door closing sounds? one for opening and one for closing

    • @pressedin
      @pressedin 2 года назад

      Hey, not sure if youve figured it out already but whatever, At the end of the script where it says|
      "tweenR.Completed:Wait()
      activated = false"
      Below "activated = false" You wanna put "model["doorsoundhere"]:play()"
      Obviously you wanna change the "doorsoundhere" once your done but yea

  • @CoqueyCola
    @CoqueyCola 3 года назад

    Pls make another playing ur gamesss!

  • @darkdrixh200
    @darkdrixh200 Год назад +1

    And how do I make it rotate? I mean, I don't want it to go to a side, I want it just to rotate from a certain axis

  • @WeGreenOrBlue
    @WeGreenOrBlue Год назад

    does it work with models Cuz i tried to use it on a model and it doesnt work :(

  • @awsumguy-bh9pz
    @awsumguy-bh9pz 2 года назад +2

    this doesnt work

  • @empty9475
    @empty9475 3 года назад

    Hello! Can you make a video how to make a game menu please.

  • @0epic_progamer052
    @0epic_progamer052 3 года назад +1

    WHY THIS IS NOT WORK

  • @gabirle
    @gabirle 2 года назад

    is there a way to make it so specific people can lock the door (prevent it from opening)?

  • @reyee
    @reyee Год назад +1

    Man Everyone is saying it works but not for me

  • @wizgot4576
    @wizgot4576 2 года назад

    If dani played ROBLOX he will just take the script lol

  • @Lucifer-db5hc
    @Lucifer-db5hc 2 года назад

    Could you do the same version of this but a command instead of a touch part?

  • @AJGamingRoblox
    @AJGamingRoblox 2 года назад

    why ddidnt it work for me? did i do something wrong?

  • @ash22423
    @ash22423 2 года назад

    Please help it's not working I think I did something wrong

  • @Rigsdoesstuff
    @Rigsdoesstuff 2 года назад

    What did I do wrong? It doesn’t work

  • @sarge2214
    @sarge2214 3 года назад +2

    Thank you it doesnt work

  • @ragnarsek8775
    @ragnarsek8775 2 года назад +1

    Great tutorial/vid but the script doesn't work. I did it completly just like you

  • @truckspotting_gelderland
    @truckspotting_gelderland 2 года назад

    I folow the steps but i donst work? Can someone help me?

  • @user-or3cj1ci6d
    @user-or3cj1ci6d 2 года назад

    How can I make the doors go invisible when they open so they don't collide into my walls?

  • @Z_1Y1_D
    @Z_1Y1_D 3 года назад

    Dose not work any more please find a solution

  • @Triscuit08
    @Triscuit08 2 года назад

    hay please help, I'm making Jurassic Park and i want the JP gates to automatically open and close when you get near but heres the problem, the JP doors open like real doors, they don't slide. any help?

  • @LeandroOverGamerRB
    @LeandroOverGamerRB 2 года назад

    Muito obrigado mano vai me ajuda muito!!!!!!!!

  • @ARJUN28..
    @ARJUN28.. 2 года назад

    E key to open and close automatically door roblox studio

  • @TomatoTakesOver
    @TomatoTakesOver 2 года назад

    Does this also works if my part is a group of multiple models?

  • @stickman9512
    @stickman9512 2 года назад

    i have a question
    so when i put the sript in the door model and the int value and set it to 3, it didn't work, can you explain what happend here?

  • @TriniCrix
    @TriniCrix Год назад

    Line 25 has an error

  • @cosmicrunner1234
    @cosmicrunner1234 3 года назад

    If you are having problems after copy and pasting the script, delete this section: model["Door"]:Play()

    • @TechwithMikeYT
      @TechwithMikeYT  3 года назад +1

      That's for the sound. It's not critical if you want to delete.

  • @qoper2689
    @qoper2689 2 года назад

    Can you help me with this lag beacause the script shows me diffrent colors on words than yours

  • @slendermanqrty2
    @slendermanqrty2 2 года назад

    How do add sound?

  • @ymamhmoud1057
    @ymamhmoud1057 3 года назад

    Yo Bro Im Sure You Forgot Me Any Ways I Was An Old Follower Its Time To Say Hi Again :D

  • @noxticguy7908
    @noxticguy7908 3 года назад

    yo bro why is the door doesnt work

  • @cloclo4491
    @cloclo4491 2 года назад

    Hii can anyone help me?? :0 The output showed an error saying
    " TweenService:Create no property named 'Position' for object 'MainL' "
    My script looks like this
    seat.Touched:connect(function(child)
    if (child.Name == "StationSensor") and (child ~= lastStation) and not activated then
    lastStation = child
    activated = true
    model['DOSlide']:Play()

    local tweenL = TweenService:Create(left, tweenInfo, {Position = model.TargetL.Position})
    local tweenR = TweenService:Create(right, tweenInfo, {Position = model.TargetR.Position})

    tweenL:Play()
    tweenR:Play()

    wait(5)

    activated = false
    end
    end)

  • @JohnsonAttackThatBoomcannon
    @JohnsonAttackThatBoomcannon 2 года назад

    Any idea how to add in sounds to doors?

  • @MegaBallPBB
    @MegaBallPBB 2 года назад

    gonna use this for my hotel
    edit : it didnt work ik u just hearted it but i forgot about this after a day. i followed it all correctly.

  • @dominikburansky6418
    @dominikburansky6418 2 года назад +1

    I would need to make a door that opens on the click and closes when I leave the sector of that door, and if there is a player in the sector and another player leaves the sector, the door remains open and when the last player leaves the sector, the door closes and they can be opened again by clicking on them, but I can't write the code, but I have some code, but when a player in the sector jump, the door closes and when the other player leaves the sector, they close even if the last player is still in the sector, do you think you can help me with this ?

  • @kenhui6154
    @kenhui6154 3 года назад

    It didn’t work for me

  • @tmaharisoa
    @tmaharisoa Год назад

    this works but the link dosent

  • @catatymgaming9234
    @catatymgaming9234 2 года назад

    It didn’t work and I don’t how to do it

  • @0epic_progamer052
    @0epic_progamer052 3 года назад

    Why this is not work

  • @90thdegreeburn
    @90thdegreeburn 2 года назад

    didnt really work :/

  • @growagt2024
    @growagt2024 2 года назад

    I wasted time for nothing. It doesn't work properly..

  • @jamestidmarsh7960
    @jamestidmarsh7960 2 года назад

    it says there isnt a tweenR