Sliding Door Roblox Studio Tutorial

Поделиться
HTML-код
  • Опубликовано: 4 июл 2024
  • This video shows how to make a sliding door in Roblox. The door is an e to open door that uses proximity prompt. I have another video on how to make a regular door in Roblox studio. I hope this video helps beginners learn Roblox scripting.
    Sliding Door Model
    www.roblox.com/library/676021...
    Regular door Tutorial
    • E to Open Door | Proxi...
    Proximity Prompt Tutorial
    • Key to Interact Proxim...
    Discord
    / discord
    Intro: 0:00
    Building the Door: 0:04
    Scripting: 2:32
    Welding to the Door: 11:39
    Outro: 12:33
    PrestonGamez got trapped in Roblox VR and was making a Roblox account in Minecraft. KreekCraft looked at the new piggy lighthouse map map in Bikini Bottom. AlvinBlox makes Robux with his scripting tutorials and games. TheDevKing makes funny scripting ideas.

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

  • @CyberCreator
    @CyberCreator  3 года назад +34

    Like the video if it helped you out! Comment your questions below or ask in the discord discord.gg/X3zdqHy

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

      the code is not visible, because it is small. enlarge please!

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

      make videos truer, edited with zoom and so on. the sound is good but the video is not good

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

      ctrl+scroll zoom

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

      Sorry if I missed it, but is it possible to change the speed, I mean. if course it is, but cna I edit the same script or do I have to go through a lot of other stuff.

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

      @@boygamerplayz3027 Set TweenInfo.New(Speed) In seconds.

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

    Saved me so much future time, Had no idea the replace tool existed! Tysm for this amazing tutorial too! I converted it into a duel lever system for a puzzle

  • @eodlwl
    @eodlwl Год назад +2

    Thank you! It took me a while but it turned out awesome. I removed the left doors script as I wanted it to be more of a Korean sliding door

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

    This was super helpful and really detailed, thanks for the help!

  • @vii3081
    @vii3081 3 года назад +12

    Hi CyberCreator! I just subscribed just now I really liked your tutorials. If you don't mind I have a question. Can you make a proximity prompt Sliding/Normal Door with a key to open it?

    • @CyberCreator
      @CyberCreator  3 года назад +7

      Thanks for the idea! A decent number of people have suggested that so definitely! Join the discord to get help sooner discord.gg/X3zdqHy

  • @Z4ckStudios
    @Z4ckStudios Год назад +4

    yknow, what's hilarious about sliding doors is, I used to think the mat they placed in front of the automatic doors at stores were the things that activated the doors lol

  • @dorkydork4338
    @dorkydork4338 11 месяцев назад +1

    Thank you so much! This helped me a lot! :D
    For future people who was stuck on the same problem as me:
    If your doors are not opening in the X direction just move over the "leftDoor.Size." to whatever direction you are going into.

    • @Marco-yn6wj
      @Marco-yn6wj 11 месяцев назад +1

      i didnt understand

    • @heyemilioo.
      @heyemilioo. 2 месяца назад

      @@Marco-yn6wjsame

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

    Holy shit, this video really helped me understand how Proximity Prompt's work. Thank you so much.

  • @General_JJ
    @General_JJ 2 года назад +5

    You literally solved the problem I've been having for 2 days thank you so much!

  • @Oklahoma_was_taken
    @Oklahoma_was_taken 3 месяца назад

    Thank you so much the code actually worked and I'm a starter at game creation and scripting thank you bro

  • @raphaelrakaraditya
    @raphaelrakaraditya 3 года назад +32

    Still the best tutorial channel :D

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

    this actually helped because im making a fnaf game and u need opening and closing doors

  • @betrayedpickle291
    @betrayedpickle291 3 года назад +11

    i actually needed this lol hope one day my vids will be good as yours
    btw it’s p1ckL from discord

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

      Sweet! I'll check out your videos! Nothing beats practice!

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

    This helped me a lot, Thank you.

  • @WagstaffDontStarve
    @WagstaffDontStarve Год назад +17

    you can move grouped parts by creating a union by selecting all the parts you want and going to model>union
    also make sure you have the part that you linked to the attachment's name instead of "Top" (unless it is Top) as shown in the video, hope this helps someone, took a day or two of head scratching

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

      You mean like the door, oh jesus christ...

    • @raw5339
      @raw5339 10 месяцев назад

      I can't make it double materialed then

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

    Omg thank you so much! this is the 4th video I've tried to make my door work and it finally works! Do you know how to make it so you use an animation to open the door? Or sound?

  • @kfed8324
    @kfed8324 9 месяцев назад

    So useful, thanks bro it helped alot

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

    love you so much, thanks for the tutorial!

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

    Instantly subbed, great help.

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

    This helped me a lot Thanks!

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

    nice video!!! I like watching your videos a lot

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

      If you need a video suggestion: “how to think of a great Roblox game idea” I think this will help a lot of people (especially me lol)

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

      Glad you like them! Your video suggestion is in my list!

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

    Thanks! This help me alot for my prison game: D

  • @Flex1b0b-_-
    @Flex1b0b-_- Год назад

    thansk for this tutorial its the first youtube tutorial that actually works lol

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

    thank god
    You just saved my life
    So good video

  • @nixonburns9300
    @nixonburns9300 2 года назад +6

    Hey I'm just wondering I copied it down and for some reason my doors open on the z axis rather than the x axis.

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

    Do I need to make it just 1 part, or will it work with grouped stuff?

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

    Why is ur video is the best i cant believe it your the best ytber ever!

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

    Thank you this is great for my clothing store on roblox

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

    Wow! Nice video!

  • @ERROR-MODE
    @ERROR-MODE 3 года назад +12

    This really helped me with my Military Base. Because I wanted it to take longer to break into it so with an E Prompt, I can make it as long as I want.

  • @patojaja9724
    @patojaja9724 3 года назад +6

    Yo creo que si quieres hacer una puerta que funcione tanto en el eje X como en el eje Z es una buena idea hacer la puerta con prismáticos!
    (Es un poquito más práctico a largo plazo)

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

    I can say that you are doing very good job

  • @TheCycloneMirage
    @TheCycloneMirage 3 года назад +6

    Remember when I used to watch you daily, think it’s time to get back to doing it.

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

      Sweet! I'll be posting even more now!

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

    New subscriber :D

  • @randomfset
    @randomfset 2 года назад +4

    Quick question. How do you make click detector buttons do the job? Could you maybe make a tutorial on how to make some green and red buttons that open and close the doors?

    • @misaelheredia
      @misaelheredia 10 месяцев назад

      are you planning a fnaf game or something?

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

    amazing, absolutely perfect

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

    Tysm!!!!
    (Idea: Key To open door animated)

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

    I have a question can u make a video about like making a game like from A to Z even if it is simple all the scripts and all and ur channel is so underrated new subbie

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

      Yes. I am planning on that now. I won't to make a tutorial on how to make all of the fundamentals separately as well so anyone can easily have a game with data stores, points, inventories, shops, menus, etc.

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

      @@CyberCreator tysm

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

    Hey uh, do you kniw how i can add sounds for opening and closing the door? Im new at roblox scripting stuff.

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

    im trying to make a door where the individual doors are made with many parts and it wont work i think it has something to do with that but i dont know how to fix it any advice would be appreciated (it keeps saying that CFrame isnt a valid member of the door)

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

    Definitely using this in my game. Will credit!

    • @H3speria.
      @H3speria. 5 месяцев назад

      you don't need to credit him it a basic script.

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

    even though this was a year ago this guy is a awesome tutorial guy!

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

    you helped me out to make a military gate thank you

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

      Nice! Glad I could help with that!

  • @user-pm1xi3et1m
    @user-pm1xi3et1m 3 года назад +2

    Cool sliding doors!

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

    Thank you so much!

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

    ayo bro those tags at the bottom genius

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

    Does it not work with certain parts, because I have tried so many times for this but it still seems to not open.

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

    THANK YOU SO MUCH!
    If i could i would've gave you a kiss on the cheek for how much you helped me and how much i learned from you! Thank you so much!

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

      Also is there a way to change the speed of the movement?

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

      @@notdanni4753 4:05 Lol

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

      @@pressedin yeah i managed to figure that out myself

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

      @@notdanni4753 gotcha

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

    Will the door glitch if we spam E? And is this going to work if we rotate it?

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

    This is a great! But I wanted to make it so that a rock to the side of it has a has a click detector on it and when pressed the sliding door would open, I do not know how to do this but do you?

  • @UnethicalHacking
    @UnethicalHacking 3 месяца назад

    Thank You

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

    How would you do it if you wanted to make the door slide up?

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

    Is there a way to make a keycard ready out of it? or maybe with a “Press e to open” “you have access to this door with your clearance level(“

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

    what do i do if i wanted detail on the door how do i make it where the detail goes with the door?

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

    Anyway to make it where the door makes a sfx when you open and close?

  • @cheese7309
    @cheese7309 Год назад +2

    if you want to have the door open and close with 1 press you can replace the function with this:
    prompt.Triggered:Connect(function(player)
    leftTweenOpen:Play()
    rightTweenOpen:Play()
    prompt.Enabled = false
    wait(2) -- how long you want the door to be open for
    leftTweenClose:Play()
    rightTweenClose:Play()
    wait(1)
    prompt.Enabled = true
    prompt.ActionText = "Open"
    end)

    • @Marco-yn6wj
      @Marco-yn6wj 11 месяцев назад

      It seems like ur a good scripter, so can u help me? When i open my door it goes in a vertical way, not horizontal. What I do?

    • @Marco-yn6wj
      @Marco-yn6wj 11 месяцев назад

      @@legoguy2511 How do I try this?

    • @H3speria.
      @H3speria. 5 месяцев назад

      it doesnt work.

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

    Hi, how can I slow the door down? It is opening way too quick for me!

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

    Chance you could do it for a jail cell? So like its only one door?

  • @Quilltonic
    @Quilltonic 3 месяца назад

    I loved the tutorial but can you also ad a variation were it opens then after say 1 second it closes

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

    How do i make the trigger on 2 different parts? I want to make a gate with 2 buttons.

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

    Hi man,i have a problem with this door,the problem is i can only put 1 part and cant put a model that i made,how do i do that?

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

    idea : make a proximity prompt when you press e money lost (leaderstats) and get a tool , clone to workspace (both)

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

      I will definitely do some videos like this soon. I plan on showing how to make all of the fundamentals of a game that work together. Like a data store + leaderstats + inventory + shop etc.

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

    Bro tank you very much!👍👍👍

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

    How would I be able to make it so, let's say I have a button and I touch it, how would I make sure that it would talk to the door when I touched that button?

  • @cristi2039-
    @cristi2039- 3 года назад +9

    Is there any way, I can make it go in the Y axis direction. Since I'm trying to make a vertical opening door.(Figured it out)

    • @CyberCreator
      @CyberCreator  3 года назад +7

      Definitely! In the script we are adjusting the door's cframe X axis. Just change that to the Y axis. The following lines
      leftGoalOpen.CFrame = leftDoor.CFrame * CFrame.new(leftDoor.Size.X, 0, 0)
      rightGoalOpen.CFrame = rightDoor.CFrame * CFrame.new(-rightDoor.Size.X, 0, 0)
      would change to
      leftGoalOpen.CFrame = leftDoor.CFrame * CFrame.new(0, leftDoor.Size.Y, 0)
      rightGoalOpen.CFrame = rightDoor.CFrame * CFrame.new(0, rightDoor.Size.Y, 0)

    • @cristi2039-
      @cristi2039- 3 года назад

      @@CyberCreator Ooooh, thanks. This will be helpful in the future, since I was so stupid I didn't add a 0 at the start, in which cases would mean it looked like rightdoor.Y,0,0

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

      My entire school in a reply

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

    Hey man I did it but my door just goes sideways its kinda confusing to describe but I was wondering if you could help me with it.

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

    i subbed :DDD

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

    Do you know how i could make the door go up? And then down?

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

    Is there any way for me to make the moving part move slower?

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

    How do i make it go in other directions? I want it to go on the blue line(Z i think)

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

    I don't know why it never works. I've re-watched this 3 times already typing the script correctly doing it step by step and it still doesnt work.

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

    Can I make juts one door move? im making a japanese sliding door so I was wondering

  • @Blue-Transport
    @Blue-Transport Год назад +3

    Hi, I scripted and built the door like you did, but none of the doors opened when I did the test

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

    Still a good channel to go to for script help

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

    tysm its working

  • @Koko-zs4tc
    @Koko-zs4tc 2 года назад

    Is there a way to make a group modeled door move like this?

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

    What if I want to use something like a button to open the door. How do I do that?

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

    I made my own core design for this to make a thing for core games

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

    I know I'm a year late, but you can make if statements to check if each part of the door is open or not and then change the goals in there. This will half the amount of tweens you'd need to accomplish this.

  • @davidmolin8944
    @davidmolin8944 7 месяцев назад

    so question but how would i make this work with more than 1 part, im trying to make a door which has multiple parts in the group open and rn only 1 part opens while the rest don't move, is there anyway or do i need to union all the parts together?

    • @davidmolin8944
      @davidmolin8944 7 месяцев назад

      update: i just welded the parts to one another and it fixed the problem, if someone has a better solution please tell me but otherwise i'll be using this one for now(i also didn't watch until the end of the video if i had i would've realized he went through this lol)

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

    Subbed

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

    Is there any way to make the doors slide slower?

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

    thanks

  • @thegamingkids2239
    @thegamingkids2239 3 месяца назад +1

    what are these brackets? are they: {} because i cant see them

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

    Great video

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

    you can do the bombardier movie 346 train with open, close button, controls, opening close door pls i need for my game

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

    When I press e the door opens but the proximity prompt doesnt show up again it just disapears, anyone know how to fix this?

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

    7:57 lol I'm confuse because my left door moved a little bit forward but my script is not the problem because I pasted my code to your model then it work so idk why mine did not work but do you know why?
    edit: nvm found the problem also good video

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

      Glad you figured it out! Thanks!

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

    I hope this works for my horror game elevator

  • @kingdinoz1969
    @kingdinoz1969 9 месяцев назад

    Anyone know how to add separate parts to the door? Tried welding it to the door but that didn't work.

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

    It didn't work for me, I watched the video five times and I checked the script. Nvm I got it. I had to change the distance that the door would go (I just started scripting so I didn't know lol). Thank you, nice video, subscribed.

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

    Hello! I tried to do this but the door doesn't work i listened carefully but nope still not working i did it again its not working since my classmate wants me to help him with the sliding doors

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

    finally I can make a moving door

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

    How can I alter the script to make grouped parts move, instead of welding parts onto other parts?

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

      Same thing for me. He doesn't reply to comments anymore, I don't think.

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

    hey man, the tutorial is really helpful but i have a question.
    i have multiple parts in my right and left door and there is no main part of the door, what should i do now?

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

      im no expert but maybe try grouping the parts using control g and naming them appropiately

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

      @@unitedpolaris i found out how to do it, i had to use a different script and weld all the parts together
      my friend helped me on that

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

    The door doesnt open when i press the E key, my friend who is pretty good at scripting has troubleshooted it 3 times now and it still doesnt work

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

    How can I make a proximity prompt that when you use it, it gives you a badge?

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

    yo my left door isnt working i havent watched the entire vid but it is not working at all can you help me with that?

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

    How do you make it so only specific people can open it?

  • @11thharbinger22
    @11thharbinger22 Год назад

    This is very helpful and everything works but it doesn't let me open the doors and instead of saying e, it says interact what do you think I should do to fix it? Thank you and you're videos are amazing@

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

      I have the same issue, but my guess is our game files are corrupted. Because I followed and copied everything he did exactly. But it still didn’t work. I’ve rewatched and remade this tutorial 4 or 5 times. It still hasn’t worked. I’m at a loss.

    • @ryu.-
      @ryu.- 10 месяцев назад

      Not sure about why its not working, the same thing is happening to me. However you can change "interact" to E by going into the proximity prompt's properties and changing the action text