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

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 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...

ความคิดเห็น • 139

  • @XDRex64
    @XDRex64 ปีที่แล้ว +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 5 หลายเดือนก่อน +3

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

    • @Iceboyplays45
      @Iceboyplays45 29 วันที่ผ่านมา +1

      And someone said “Lua is easy 🤓

  • @lalabell666
    @lalabell666 4 หลายเดือนก่อน +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 2 หลายเดือนก่อน +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 ปีที่แล้ว +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 11 หลายเดือนก่อน +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 4 หลายเดือนก่อน

      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!!!!!!!!!!!!!!!!!

  • @SoftCuteJournal
    @SoftCuteJournal 8 หลายเดือนก่อน +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 8 หลายเดือนก่อน +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)

    • @ariene100yearsago6
      @ariene100yearsago6 3 หลายเดือนก่อน

      Man, thanks. I was so confused. God bless you

  • @eelbcyeah13
    @eelbcyeah13 หลายเดือนก่อน +1

    TYSM BRO!! THIS HELPED A LOT!!

  • @NotBanrr
    @NotBanrr 8 หลายเดือนก่อน +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 7 หลายเดือนก่อน

      tysm!!

    • @mariia_kr
      @mariia_kr 21 วันที่ผ่านมา

      how do you turn in into a union??

  • @TylernewkidVR
    @TylernewkidVR 3 หลายเดือนก่อน +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 7 วันที่ผ่านมา

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

  • @Chaaeweb
    @Chaaeweb 17 วันที่ผ่านมา

    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 10 หลายเดือนก่อน +2

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

  • @Void.Reaper
    @Void.Reaper 5 หลายเดือนก่อน +1

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

    • @masterkliff
      @masterkliff 17 วันที่ผ่านมา

      The door is probably anchored

  • @notkoval
    @notkoval 9 หลายเดือนก่อน +2

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

  • @kawaiipotatoYT.
    @kawaiipotatoYT. ปีที่แล้ว +4

    Whatever I do it doesn’t work for me

    • @mustymelonz3796
      @mustymelonz3796 ปีที่แล้ว

      0:18

    • @Prinx20
      @Prinx20 ปีที่แล้ว

      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

  • @uselessheapofplastic4447
    @uselessheapofplastic4447 9 หลายเดือนก่อน +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

  • @cyberfraudist
    @cyberfraudist 11 หลายเดือนก่อน +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)

  • @Davaal_
    @Davaal_ 22 วันที่ผ่านมา

    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?

  • @Emily-is6ju
    @Emily-is6ju 18 วันที่ผ่านมา

    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

  • @CrispyCookieGaming
    @CrispyCookieGaming 8 หลายเดือนก่อน +2

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

  • @zomB_theBunne
    @zomB_theBunne ปีที่แล้ว +3

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

    • @dolphinmaster420
      @dolphinmaster420 ปีที่แล้ว +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 ปีที่แล้ว

      @@dolphinmaster420 what if it STILL doesnt work?

    • @dolphinmaster420
      @dolphinmaster420 ปีที่แล้ว

      @@JokeAlladin idk

    • @gobcurrymuncher380
      @gobcurrymuncher380 11 หลายเดือนก่อน

      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)

  • @Kloyster2010
    @Kloyster2010 หลายเดือนก่อน

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

  • @DDFandomProtectors1
    @DDFandomProtectors1 7 หลายเดือนก่อน

    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 ปีที่แล้ว +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 😭😭😭😭

  • @iYoln-n
    @iYoln-n 15 วันที่ผ่านมา

    Try this way no anchor and Change weld position

  • @zaxk5331
    @zaxk5331 4 หลายเดือนก่อน +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

  • @VoidOfGore
    @VoidOfGore ปีที่แล้ว +2

    thank you so much i will make great use with doors

  • @Pranjul_ram
    @Pranjul_ram 10 หลายเดือนก่อน +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

  • @rgbat21
    @rgbat21 หลายเดือนก่อน

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

  • @Fatpopcatgaming1927
    @Fatpopcatgaming1927 2 หลายเดือนก่อน

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

  • @13luecheese404
    @13luecheese404 ปีที่แล้ว +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 ปีที่แล้ว +1

      same

    • @Unknown-qo7kq
      @Unknown-qo7kq 11 หลายเดือนก่อน +1

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

    • @13luecheese404
      @13luecheese404 11 หลายเดือนก่อน +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 8 หลายเดือนก่อน

      HOW DID YOU FIX IT 😭

    • @13luecheese404
      @13luecheese404 8 หลายเดือนก่อน

      @@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

  • @MTMERRIK2012
    @MTMERRIK2012 6 หลายเดือนก่อน +2

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

    • @mskfrede228
      @mskfrede228 5 หลายเดือนก่อน

      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 5 หลายเดือนก่อน

      @@mskfrede228 thx

    • @mskfrede228
      @mskfrede228 5 หลายเดือนก่อน

      @@MTMERRIK2012 Your welcome!

  • @pumbaLalaee
    @pumbaLalaee 4 หลายเดือนก่อน +1

    my door is not opening

  • @Said.x4kzz
    @Said.x4kzz 4 หลายเดือนก่อน

    Thaanksss!!!! I love your video

  • @RileyBigMac955
    @RileyBigMac955 ปีที่แล้ว +1

    This was such a lifesaver.

  • @theslime3495
    @theslime3495 ปีที่แล้ว +2

    How do I make the door play sounds?

  • @Auximer
    @Auximer 2 หลายเดือนก่อน

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

  • @SlavicPug
    @SlavicPug 7 หลายเดือนก่อน

    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 :)

  • @Bounceleenaforevah
    @Bounceleenaforevah 3 หลายเดือนก่อน

    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 3 หลายเดือนก่อน

      the door isnt anchored but still doesnt open ;A;

    • @Bounceleenaforevah
      @Bounceleenaforevah 3 หลายเดือนก่อน

      @@TopHatDeveloper oof :[

    • @TopHatDeveloper
      @TopHatDeveloper 3 หลายเดือนก่อน

      @@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😭

  • @plizshutup8359
    @plizshutup8359 3 หลายเดือนก่อน

    THANK YOU FIRST ONE THAT WORKS

  • @LEGSStudios
    @LEGSStudios ปีที่แล้ว +3

    the description 🤣

  • @losberd8244
    @losberd8244 3 หลายเดือนก่อน

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

  • @zombiem3mes441
    @zombiem3mes441 ปีที่แล้ว +1

    DUDE THANK YOU

  • @yeetstudiosofficial9016
    @yeetstudiosofficial9016 2 หลายเดือนก่อน

    ik this tutorial old as hell but it works

  • @Cliffy_Deluna
    @Cliffy_Deluna ปีที่แล้ว +19

    followed it step by step, and the door wont open

    • @5d_obj
      @5d_obj ปีที่แล้ว +3

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

    • @dolphinmaster420
      @dolphinmaster420 ปีที่แล้ว +8

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

    • @Iceboyplays45
      @Iceboyplays45 27 วันที่ผ่านมา

      @@dolphinmaster420stil didn’t work

  • @yeeeoowchh
    @yeeeoowchh ปีที่แล้ว +1

    Thanks!

  • @lmixrl8982
    @lmixrl8982 ปีที่แล้ว +1

    FINALLY ONE THAT WORKS

  • @misiu1playz236
    @misiu1playz236 ปีที่แล้ว +1

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

  • @qob2b
    @qob2b 7 หลายเดือนก่อน

    what if my door has a lot of parts?

  • @Ninja400.Clayton
    @Ninja400.Clayton 3 หลายเดือนก่อน

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

  • @Elephant_Towl
    @Elephant_Towl 9 หลายเดือนก่อน

    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.

    • @minyoonji2002
      @minyoonji2002 8 หลายเดือนก่อน

      I think u have to Union it

  • @jimroniepanglinan8635
    @jimroniepanglinan8635 7 หลายเดือนก่อน

    union can also work, thanks for this great tutorial

  • @Motormouth17
    @Motormouth17 3 หลายเดือนก่อน

    Thank you dude!

  • @xxfoodisfoodxx
    @xxfoodisfoodxx 6 หลายเดือนก่อน

    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..

  • @UiUy-j1m
    @UiUy-j1m 21 วันที่ผ่านมา

    their isnt the script in the description

  • @coachscp6038
    @coachscp6038 7 หลายเดือนก่อน +1

    This doesn't work for me.

  • @UniwolfYT
    @UniwolfYT 8 หลายเดือนก่อน +1

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

  • @skyflorn_games
    @skyflorn_games ปีที่แล้ว +1

    its not working

  • @lanaxbillie614
    @lanaxbillie614 3 หลายเดือนก่อน

    but but Please I want to make an arch door😭

  • @queencreek.
    @queencreek. 4 หลายเดือนก่อน

    how to delete interface?

  • @fadecj
    @fadecj 3 หลายเดือนก่อน

    Thank you

  • @bunnygaming6388
    @bunnygaming6388 3 หลายเดือนก่อน

    How do i add more pieces to the door?

    • @zorouhrblx
      @zorouhrblx 2 หลายเดือนก่อน

      union it

  • @kara8261
    @kara8261 10 หลายเดือนก่อน +1

    The hinge moved but the door didn’t

    • @Yiisopii
      @Yiisopii 2 หลายเดือนก่อน

      Same for me

    • @galomendo
      @galomendo 2 หลายเดือนก่อน +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 2 หลายเดือนก่อน +1

      @@Yiisopii ^^^

  • @lmixrl8982
    @lmixrl8982 ปีที่แล้ว +1

    IT WORKS

  • @bacongroup10
    @bacongroup10 4 หลายเดือนก่อน

    thanks man

  • @bannanasmoothie
    @bannanasmoothie 2 หลายเดือนก่อน

    omg the script link doesn't even work ugh

  • @STARR.FR.
    @STARR.FR. ปีที่แล้ว +1

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

    • @aeriksson810
      @aeriksson810 7 หลายเดือนก่อน

      Same

    • @Taysnewyearsday
      @Taysnewyearsday 7 หลายเดือนก่อน

      i think you mightve done the weld thing wrong

  • @saturniia
    @saturniia 7 หลายเดือนก่อน

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

  • @Midnightnavybloxer
    @Midnightnavybloxer ปีที่แล้ว +1

    What’s the script Hwo do I do it

  • @dolphinmaster420
    @dolphinmaster420 ปีที่แล้ว +1

    How can you add a sound?

    • @brzzxee
      @brzzxee ปีที่แล้ว

      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.

  • @TheAwesomeGamerYT
    @TheAwesomeGamerYT 3 หลายเดือนก่อน

    can you write the script for me plzzz?

  • @mariia_kr
    @mariia_kr 21 วันที่ผ่านมา

    How to make it open in an opposite way?

    • @mariia_kr
      @mariia_kr 21 วันที่ผ่านมา

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

  • @SmallSlowWifi
    @SmallSlowWifi 5 หลายเดือนก่อน

    Fucking yapping my adhd cant handle this shit

  • @valzdev
    @valzdev ปีที่แล้ว +1

    does it's work for R6?

    • @TheGrimReaper19
      @TheGrimReaper19 5 หลายเดือนก่อน

      -_-
      are you of have the big dum dum

  • @yigitulgudur9770
    @yigitulgudur9770 5 หลายเดือนก่อน

    didnt work for me :(

  • @Fea1hxr
    @Fea1hxr 5 หลายเดือนก่อน

    doesn't work pls help

  • @JLiscool
    @JLiscool หลายเดือนก่อน

    it doesn't work

  • @xectra189
    @xectra189 4 วันที่ผ่านมา

    Where is the script😡

  • @Taysnewyearsday
    @Taysnewyearsday 7 หลายเดือนก่อน

    can someone help? my door just falls apart

  • @w_DBL
    @w_DBL 3 หลายเดือนก่อน

    this did not work at all

  • @LesMoore6
    @LesMoore6 5 หลายเดือนก่อน

    IT NOT WORK

  • @ElijahFowler-f5u
    @ElijahFowler-f5u 6 หลายเดือนก่อน

    it no work

  • @drippydinoreal
    @drippydinoreal 4 หลายเดือนก่อน +1

    my door keeps falling apart :(

  • @jamesdemons
    @jamesdemons หลายเดือนก่อน

    bro it does not work make a model
    🙄

  • @lmixrl8982
    @lmixrl8982 ปีที่แล้ว

    WWWWWWW

  • @user-ud8yu8qx1j
    @user-ud8yu8qx1j 9 หลายเดือนก่อน

    It didnt work fro me :(

    • @Survixn-MM2
      @Survixn-MM2 6 หลายเดือนก่อน

      Same:(

  • @MASTER_NIEL_466
    @MASTER_NIEL_466 ปีที่แล้ว

    bro 69 like's

  • @stickman_animations3
    @stickman_animations3 ปีที่แล้ว

    didnit work

  • @juliasolomon4602
    @juliasolomon4602 7 หลายเดือนก่อน

    WHAT DO YOU MEAN YOU LIAR IT DOSENT OPEN

    • @MTMERRIK2012
      @MTMERRIK2012 6 หลายเดือนก่อน

      you did the tutorial wrong

  • @Prinx20
    @Prinx20 ปีที่แล้ว +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 ปีที่แล้ว

      Mine won’t open :(

    • @Prinx20
      @Prinx20 ปีที่แล้ว

      ​@@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 5 หลายเดือนก่อน

    doesnt work this is cap