How To Make An E To Open Door In Roblox Studio (Easy & Quick)

Sdílet
Vložit
  • čas přidán 9. 09. 2024
  • How To Make An E To Open Door In Roblox Studio (Easy & Quick)
    In Today's Video We Will Cover roblox studio,roblox,roblox doors,doors roblox,roblox studio tutorial,roblox doors monsters,roblox studio how to make,roblox doors game,roblox doors meme,roblox studio how to,roblox door,roblox scripting tutorial,roblox tutorial,how to make doors in roblox studio,doors remake roblox studio,how to make doors in roblox,roblox studio doors,roblox door tutorial,roblox doors animation,roblox doors short,make a door in roblox studio,roblox studio door
    pastebin.com/d...

Komentáře • 138

  • @XDRex64
    @XDRex64 Před rokem +36

    Who knew making something so simple like a door could be so frustrating and time consuming? Great video. Thank you.
    If anyone is having trouble, Remember that roblox studio is very finicky and one minor thing done wrong will throw off the thing not working.

    • @AzureSpike
      @AzureSpike Před 5 měsíci +3

      its roblox what did you expect, you have to write a 30 line unreadable code for one product purchase

    • @Iceboyplays45
      @Iceboyplays45 Před 22 dny +1

      And someone said “Lua is easy 🤓

  • @lalabell666
    @lalabell666 Před 4 měsíci +3

    oh my god.... i was trying for days to actually make a door... i even found one that was extreamly simalur to this, but i couldnt figure out the isuse at all, but yours totally worked!!!!!!! thank you so much!!!! i saving this code so i NEVER have to do this from scratch AGAIN!!!! thank you!!!!!!! i cant even explain the amount of frusterated crying this saved me!!!!!!!! THANK YOU!!!!!!!!
    (also, thank you to the person who said you can check what the problem in the code is by typing /console into the chat when youre testing it!!!!!!! thank youuuuuuu!!!!)

  • @Zye_Clips
    @Zye_Clips Před měsícem +3

    If you guys have an issue where when you open the door and it opens going down into the ground like instead of back and forth like intended then change goalOpen variable to this:
    local goalOpen = {}
    goalOpen.CFrame = hinge.CFrame * CFrame.Angles(90, math.rad(0), 0)
    hope this helps!

  • @mariglianosteven
    @mariglianosteven Před rokem +11

    For anyone having trouble, you can check the console while playtesting for any errors and to see if your script is even running. To do so, type /console in chat or press F9. I followed this step by step and spent 10 minutes trying to figure out why it wasn't working just to find out that I accidentally entered a single space before typing "Door" to rename my door.

    • @flushed627
      @flushed627 Před 11 měsíci +2

      Thank you so much. Just found out that i put the script with the door itself and had to rename the hinge and side.

    • @lalabell666
      @lalabell666 Před 4 měsíci

      oh my god, i was SO frusterated that i didnt know what the real problem with my code was! thank you for telling me how to check it!!!!!! this is a life saver!!!!!!!!!!!!!!!! i cant thank you enough!!!!!!!!!!!!!!!!!

  • @eelbcyeah13
    @eelbcyeah13 Před měsícem +1

    TYSM BRO!! THIS HELPED A LOT!!

  • @SoftCuteJournal
    @SoftCuteJournal Před 7 měsíci +3

    Amazing tutorial! I've tried many other door tutorials, but they all didn't work. Until I found this one! Thank you so much for posting this video. It helped me allot!

  • @Ibrokeeveryboneinmybody
    @Ibrokeeveryboneinmybody Před 7 měsíci +5

    If you can’t find create on new Roblox studios,go to constrains then click the triangle and then click create.Hope this helps(idk if it’s on pc)

  • @NotBanrr
    @NotBanrr Před 8 měsíci +2

    For those who have a whole door thats a model, you can turn it into a union then it should work. If the door has meshes in it, the union wont work

    • @qob2b
      @qob2b Před 6 měsíci

      tysm!!

    • @mariia_kr
      @mariia_kr Před 14 dny

      how do you turn in into a union??

  • @Chaaeweb
    @Chaaeweb Před 10 dny

    It didn't work for me at the beginning, but what I did was change the name of the parts to how they were exactly copied in the script, with capital letters and without spaces, when I tried it after doing that, it worked

  • @patrick9292
    @patrick9292 Před 10 měsíci +2

    If your door is going the wrong way make the hinge and handle upside down

  • @TylernewkidVR
    @TylernewkidVR Před 3 měsíci +1

    it kinda worked,but kinda failed. it did say (press e to interact) but when i pressed e it didnt open. can someone help?

    • @A.KYT2125
      @A.KYT2125 Před 21 hodinou

      me too it happens it shows e to interact but does not open

  • @Auximer
    @Auximer Před 2 měsíci

    Fun fact, With 'your' code I had a bug that helped me

  • @iYoln-n
    @iYoln-n Před 8 dny

    Try this way no anchor and Change weld position

  • @VoidOfGore
    @VoidOfGore Před rokem +2

    thank you so much i will make great use with doors

  • @notkoval
    @notkoval Před 9 měsíci +2

    this is a local script. in a multiplayer game it doesnt open for anyone else

  • @plizshutup8359
    @plizshutup8359 Před 3 měsíci

    THANK YOU FIRST ONE THAT WORKS

  • @Void.Reaper
    @Void.Reaper Před 5 měsíci +1

    If anyone could tell me why only the hinge/side is moving but not the door, that would be great!

  • @zaxk5331
    @zaxk5331 Před 4 měsíci +1

    all yalls scams. i just made my custom door and none of these work so can yall just do it for me and matter fact yall can just script my whole game atp

  • @cyberfraudist
    @cyberfraudist Před 11 měsíci +9

    (for the people who are in a country where pastebin is blocked)
    local TweenService = game:GetService("TweenService")

    local hinge = script.Parent.Hinge
    local prompt = script.Parent.Door.ProximityPrompt

    local goalOpen = {}
    goalOpen.CFrame = hinge.CFrame * CFrame.Angles(0, math.rad(90), 0)

    local goalClose = {}
    goalClose.CFrame = hinge.CFrame * CFrame.Angles(0, 0, 0)

    local tweenInfo = TweenInfo.new(1)
    local tweenOpen = TweenService:Create(hinge, tweenInfo, goalOpen)
    local tweenClose = TweenService:Create(hinge, tweenInfo, goalClose)

    prompt.Triggered:Connect(function()
    if prompt.ActionText == "Close" then
    tweenClose:Play()
    prompt.ActionText = "Open"
    else
    tweenOpen:Play()
    prompt.ActionText = "Close"
    end
    end)

  • @RileyBigMac955
    @RileyBigMac955 Před rokem +1

    This was such a lifesaver.

  • @LEGSStudios
    @LEGSStudios Před rokem +3

    the description 🤣

  • @DDFandomProtectors1
    @DDFandomProtectors1 Před 6 měsíci

    thank you so much for making a awesome video like this the doors work perfectly for my house i made and suits it well

  • @melonpie105
    @melonpie105 Před rokem +1

    can you PLEASE do a tutorial on a bifold closet door?? i can't find a single tutorial on it and i've been trying for HOURS to make it myself 😭😭😭😭

  • @Said.x4kzz
    @Said.x4kzz Před 4 měsíci

    Thaanksss!!!! I love your video

  • @yeetstudiosofficial9016
    @yeetstudiosofficial9016 Před 2 měsíci

    ik this tutorial old as hell but it works

  • @uselessheapofplastic4447
    @uselessheapofplastic4447 Před 9 měsíci +1

    Works amazingly! But if I wanted to have many doors in one game like this, what would I add to the script if I wanted to move it into serverscriptservice and put the doors in a folder? Tysm

  • @kawaiipotatoYT.
    @kawaiipotatoYT. Před rokem +4

    Whatever I do it doesn’t work for me

    • @mustymelonz3796
      @mustymelonz3796 Před rokem

      0:18

    • @Prinx20
      @Prinx20 Před rokem

      Try this script if the door opens the wrong way:
      local TweenService = game:GetService("TweenService")
      local hinge = script.Parent.Hinge
      local prompt = script.Parent.Door.ProximityPrompt
      local goalOpen = {}
      goalOpen.CFrame = hinge.CFrame * CFrame.Angles(90, math.rad(0), 0)
      local goalClose = {}
      goalClose.CFrame = hinge.CFrame * CFrame.Angles(0, 0, 0)
      local tweenInfo = TweenInfo.new(1)
      local tweenOpen = TweenService:Create(hinge, tweenInfo, goalOpen)
      local tweenClose = TweenService:Create(hinge, tweenInfo, goalClose)
      prompt.Triggered:Connect(function()
      if prompt.ActionText == "Close" then
      tweenClose:Play()
      prompt.ActionText = "Open"
      else
      tweenOpen:Play()
      prompt.ActionText = "Close"
      end
      end)
      ------------------------------------------
      I changed the 90 to the left so it would open the right way

  • @Davaal_
    @Davaal_ Před 15 dny

    It kinda works. I made my door on a part, which is supposed to be the floor. I scaled up the part so the door can be higher off the ground (I'm adding stairs), but the moment i did that, the door didn't open anymore. Does anyone know how to fix this?

  • @SlavicPug
    @SlavicPug Před 6 měsíci

    Hey, so first off great tutorial. After hours of struggling I could make my door work. Now I wanted to ask if someone knew how I could apply this to a double door which is supposed to only use one ProximityPromt. Thanks in advance :)

  • @CrispyCookieGaming
    @CrispyCookieGaming Před 8 měsíci +2

    For me the door just fell idk if I did something wrong or what

  • @13luecheese404
    @13luecheese404 Před rokem +3

    Please.... PLEASE JUST ANSWER ME WHY EVERYTIME I WATCH A SCRIPT VIDEO IT DOESNT WORK
    like this is the perfect video and he did a great job
    BUT nothing works for me, im gonna explode or something
    EDIT: I did it

    • @JokeAlladin
      @JokeAlladin Před rokem +1

      same

    • @Unknown-qo7kq
      @Unknown-qo7kq Před 11 měsíci +1

      yo if you need help i might be able to fix it

    • @13luecheese404
      @13luecheese404 Před 11 měsíci +1

      @@Unknown-qo7kq hey man, i appreciate, but dont worry, i got it fixed. i probably should edit the comment. But thank you, a lot

    • @minyoonji2002
      @minyoonji2002 Před 8 měsíci

      HOW DID YOU FIX IT 😭

    • @13luecheese404
      @13luecheese404 Před 8 měsíci

      @@minyoonji2002 well, i dont remember all that much.... but i somehow fixed it :devious:
      no but serious, i would just follow every step CAREFULLY.
      you got this

  • @Uzzyuzi
    @Uzzyuzi Před 4 měsíci +1

    my door is not opening

  • @Emily-is6ju
    @Emily-is6ju Před 11 dny

    Can anyone help me, my Proximity Prompt flashes up top left whenever i test the game instead of staying on my screen when I'm in range of the door

  • @lmixrl8982
    @lmixrl8982 Před rokem +1

    FINALLY ONE THAT WORKS

  • @Kloyster2010
    @Kloyster2010 Před měsícem

    when I try opening the door it only moves the hinge part, I did everything right so Idk what's wrong with it

  • @zombiem3mes441
    @zombiem3mes441 Před rokem +1

    DUDE THANK YOU

  • @jimroniepanglinan8635
    @jimroniepanglinan8635 Před 7 měsíci

    union can also work, thanks for this great tutorial

  • @zomB_theBunne
    @zomB_theBunne Před rokem +3

    i followed this all the way through and it doesnt work. what do i do?????

    • @dolphinmaster420
      @dolphinmaster420 Před rokem +1

      Make sure the door is NOT anchored
      Thats what was wrong with my door
      If it isnt, and it still does not work, then its probably something with the weld, in the propeties make sure part0 is the door and part1 is the hinge

    • @JokeAlladin
      @JokeAlladin Před rokem

      @@dolphinmaster420 what if it STILL doesnt work?

    • @dolphinmaster420
      @dolphinmaster420 Před rokem

      @@JokeAlladin idk

    • @gobcurrymuncher380
      @gobcurrymuncher380 Před 11 měsíci

      1) Door parts can't be anchored, make sure the hinge IS ANCHORED.
      2) Install "Model Weld" owned by PixelZombieX to weld all the parts together to the hinge.
      3) Insert the script, and the proximity prompt. (For multiple doors with the same script, place the ProximityPrompt under a central part of the door model)

  • @PlasticProductions-o7
    @PlasticProductions-o7 Před 3 měsíci

    Thank you dude!

  • @yeeeoowchh
    @yeeeoowchh Před rokem +1

    Thanks!

  • @UniwolfYT
    @UniwolfYT Před 8 měsíci +1

    Tysm!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @Pranjul_ram
    @Pranjul_ram Před 9 měsíci +1

    Plz help me I am trying to make a detailed door and I want to use e to open also but idk why my detailed door won’t even work it’s says E interact, it doesn’t even say E Open

  • @theslime3495
    @theslime3495 Před rokem +2

    How do I make the door play sounds?

  • @Bounceleenaforevah
    @Bounceleenaforevah Před 3 měsíci

    This still works rn (2024) if u follow the steps properly. If the hinge only moving but not the door, make sure to NOT ANCHOR the door.

    • @TopHatDeveloper
      @TopHatDeveloper Před 2 měsíci

      the door isnt anchored but still doesnt open ;A;

    • @Bounceleenaforevah
      @Bounceleenaforevah Před 2 měsíci

      @@TopHatDeveloper oof :[

    • @TopHatDeveloper
      @TopHatDeveloper Před 2 měsíci

      @@Bounceleenaforevah i even tried a different one which worked the first time
      But when i resizd it rotated it or moved it
      It only mived some of it
      And not even the main part😭

  • @misiu1playz236
    @misiu1playz236 Před rokem +1

    well it worked sorta it opens not correctly it opens up and down

  • @Fatpopcatgaming1927
    @Fatpopcatgaming1927 Před 2 měsíci

    I dont know why but i cant do it for some resson it just dosent open? is there a way to fix it

  • @Cliffy_Deluna
    @Cliffy_Deluna Před rokem +19

    followed it step by step, and the door wont open

    • @5d_obj
      @5d_obj Před rokem +3

      Make sure that anything in the door is not welded to the baseplate, should work

    • @dolphinmaster420
      @dolphinmaster420 Před rokem +8

      Make sure the door is NOT anchored
      Thats what happened to me

    • @Iceboyplays45
      @Iceboyplays45 Před 20 dny

      @@dolphinmaster420stil didn’t work

  • @rgbat21
    @rgbat21 Před měsícem

    when i duplicate a door it goes on top of it, do u know why?

  • @MTMERRIK2012
    @MTMERRIK2012 Před 6 měsíci +2

    hey bro how do i make the sound effects play when i open and close the door?

    • @mskfrede228
      @mskfrede228 Před 5 měsíci

      You can add sound in the door, not played not looped. Just the sound with your sound effect. Then you can add this script:
      local pprompt = script.Parent.Door.ProximityPrompt ---- this is your ProximityPrompt
      local sound = script.Parent.Door.YourSoundEffect ---- This is your Sound
      pprompt.Triggered:Connect(function()
      Sound:Play()
      end)
      I hope it helped

    • @MTMERRIK2012
      @MTMERRIK2012 Před 5 měsíci

      @@mskfrede228 thx

    • @mskfrede228
      @mskfrede228 Před 5 měsíci

      @@MTMERRIK2012 Your welcome!

  • @fadecj
    @fadecj Před 2 měsíci

    Thank you

  • @qob2b
    @qob2b Před 6 měsíci

    what if my door has a lot of parts?

  • @lmixrl8982
    @lmixrl8982 Před rokem +1

    IT WORKS

  • @lanastan614
    @lanastan614 Před 2 měsíci

    but but Please I want to make an arch door😭

  • @bacongroup10
    @bacongroup10 Před 4 měsíci

    thanks man

  • @coachscp6038
    @coachscp6038 Před 7 měsíci +1

    This doesn't work for me.

  • @losberd8244
    @losberd8244 Před 3 měsíci

    This doesn't cause lag cuz too much scripts in each door in my game?

  • @Elephant_Towl
    @Elephant_Towl Před 9 měsíci

    This was so helpfull thank you! I tried to add door handle I made but when I try grouping the handle and the door the handle doesn't move with the door.

  • @xxfoodisfoodxx
    @xxfoodisfoodxx Před 6 měsíci

    How the HELL do I make a sliding money safe door that's small but big enough for the character to grab stuff from. there are Literally no tutorials..

  • @Ninja400.Clayton
    @Ninja400.Clayton Před 3 měsíci

    Im making a game called "Highpoint Prison" how do i make it where only certain teams can open the door

  • @UiUy-j1m
    @UiUy-j1m Před 14 dny

    their isnt the script in the description

  • @drippydinoreal
    @drippydinoreal Před 3 měsíci +1

    my door keeps falling apart :(

  • @skyflorn_games
    @skyflorn_games Před rokem +1

    its not working

  • @SmallSlowWifi
    @SmallSlowWifi Před 5 měsíci

    Fucking yapping my adhd cant handle this shit

  • @kara8261
    @kara8261 Před 10 měsíci +1

    The hinge moved but the door didn’t

    • @Yiisopii
      @Yiisopii Před 2 měsíci

      Same for me

    • @galomendo
      @galomendo Před 2 měsíci +1

      idk if u want the solution to this since it been 7 months BUTTT i removed all of the welds for door 1 and it worked. dont remove weld constraint tho.

    • @galomendo
      @galomendo Před 2 měsíci +1

      @@Yiisopii ^^^

  • @saturniia
    @saturniia Před 7 měsíci

    im using this video but for a fridge door and its not working.

  • @queencreek.
    @queencreek. Před 4 měsíci

    how to delete interface?

  • @bannanasmoothie
    @bannanasmoothie Před 2 měsíci

    omg the script link doesn't even work ugh

  • @TheAwesomeGamerYT
    @TheAwesomeGamerYT Před 3 měsíci

    can you write the script for me plzzz?

  • @dolphinmaster420
    @dolphinmaster420 Před rokem +1

    How can you add a sound?

    • @brzzxee
      @brzzxee Před rokem

      So you add a script on prox and make a local script/script and then add the sound on the script so when you press it the sound plays :) I just used my brain for it. Because I'm working on a horror game.

  • @bunnygaming6388
    @bunnygaming6388 Před 3 měsíci

    How do i add more pieces to the door?

  • @STARR.FR.
    @STARR.FR. Před 11 měsíci +1

    so, the door didnt move but the hinge did. what do i do

  • @Midnightnavybloxer
    @Midnightnavybloxer Před rokem +1

    What’s the script Hwo do I do it

  • @yigitulgudur9770
    @yigitulgudur9770 Před 5 měsíci

    didnt work for me :(

  • @mariia_kr
    @mariia_kr Před 14 dny

    How to make it open in an opposite way?

    • @mariia_kr
      @mariia_kr Před 14 dny

      Nvm I figured it out, you rotate the door on a different axis

  • @JLiscool
    @JLiscool Před 26 dny

    it doesn't work

  • @Fea1hxr
    @Fea1hxr Před 5 měsíci

    doesn't work pls help

  • @valzdev
    @valzdev Před rokem +1

    does it's work for R6?

  • @w_DBL
    @w_DBL Před 3 měsíci

    this did not work at all

  • @LesMoore6
    @LesMoore6 Před 4 měsíci

    IT NOT WORK

  • @jamesdemons
    @jamesdemons Před měsícem

    bro it does not work make a model
    🙄

  • @user-vn6fv2rg9t
    @user-vn6fv2rg9t Před 6 měsíci

    it no work

  • @Taysnewyearsday
    @Taysnewyearsday Před 6 měsíci

    can someone help? my door just falls apart

  • @MASTER_NIEL_466
    @MASTER_NIEL_466 Před rokem

    bro 69 like's

  • @lmixrl8982
    @lmixrl8982 Před rokem

    WWWWWWW

  • @stickman_animations3
    @stickman_animations3 Před rokem

    didnit work

  • @user-ud8yu8qx1j
    @user-ud8yu8qx1j Před 9 měsíci

    It didnt work fro me :(

  • @juliasolomon4602
    @juliasolomon4602 Před 7 měsíci

    WHAT DO YOU MEAN YOU LIAR IT DOSENT OPEN

  • @Prinx20
    @Prinx20 Před rokem +1

    If the door opens the wrong way (happened to me) try this script and it should open the right way:
    local TweenService = game:GetService("TweenService")
    local hinge = script.Parent.Hinge
    local prompt = script.Parent.Door.ProximityPrompt
    local goalOpen = {}
    goalOpen.CFrame = hinge.CFrame * CFrame.Angles(90, math.rad(0), 0)
    local goalClose = {}
    goalClose.CFrame = hinge.CFrame * CFrame.Angles(0, 0, 0)
    local tweenInfo = TweenInfo.new(1)
    local tweenOpen = TweenService:Create(hinge, tweenInfo, goalOpen)
    local tweenClose = TweenService:Create(hinge, tweenInfo, goalClose)
    prompt.Triggered:Connect(function()
    if prompt.ActionText == "Close" then
    tweenClose:Play()
    prompt.ActionText = "Open"
    else
    tweenOpen:Play()
    prompt.ActionText = "Close"
    end
    end)
    -----------------------------------------------------------------
    What I did here was change the 90 to the left, because my door wasn't working right so I changed it like that and done, guys if the door just don't open, the try to see if any part that does not go with the door is connected with the door or the door connected with any part via a weld

    • @haveagreatday6822
      @haveagreatday6822 Před rokem

      Mine won’t open :(

    • @Prinx20
      @Prinx20 Před rokem

      ​@@haveagreatday6822 See if any part that does not goes with the door is connected with the door or the door connected with any part via a weld

  • @poopergt
    @poopergt Před 5 měsíci

    doesnt work this is cap