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.
Like the video if it helped you out! Comment your questions below or ask in the discord discord.gg/X3zdqHy
the code is not visible, because it is small. enlarge please!
make videos truer, edited with zoom and so on. the sound is good but the video is not good
ctrl+scroll zoom
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.
@@boygamerplayz3027 Set TweenInfo.New(Speed) In seconds.
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
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
This was super helpful and really detailed, thanks for the help!
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?
Thanks for the idea! A decent number of people have suggested that so definitely! Join the discord to get help sooner discord.gg/X3zdqHy
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
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.
i didnt understand
@@Marco-yn6wjsame
Holy shit, this video really helped me understand how Proximity Prompt's work. Thank you so much.
You literally solved the problem I've been having for 2 days thank you so much!
Awesome!
Thank you so much the code actually worked and I'm a starter at game creation and scripting thank you bro
Still the best tutorial channel :D
Glad you think so!
Yes
I agree
@@CyberCreatorthe right door doesn't close
this actually helped because im making a fnaf game and u need opening and closing doors
i actually needed this lol hope one day my vids will be good as yours
btw it’s p1ckL from discord
Sweet! I'll check out your videos! Nothing beats practice!
This helped me a lot, Thank you.
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
You mean like the door, oh jesus christ...
I can't make it double materialed then
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?
So useful, thanks bro it helped alot
love you so much, thanks for the tutorial!
Instantly subbed, great help.
Thanks!
This helped me a lot Thanks!
nice video!!! I like watching your videos a lot
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)
Glad you like them! Your video suggestion is in my list!
Thanks! This help me alot for my prison game: D
thansk for this tutorial its the first youtube tutorial that actually works lol
thank god
You just saved my life
So good video
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.
Do I need to make it just 1 part, or will it work with grouped stuff?
Why is ur video is the best i cant believe it your the best ytber ever!
Thanks!
@@CyberCreator wc!
Thank you this is great for my clothing store on roblox
Wow! Nice video!
Thank you!
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.
nice ;D
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)
I can say that you are doing very good job
Thanks!
Remember when I used to watch you daily, think it’s time to get back to doing it.
Sweet! I'll be posting even more now!
New subscriber :D
Thanks for subbing!
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?
are you planning a fnaf game or something?
amazing, absolutely perfect
Tysm!!!!
(Idea: Key To open door animated)
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
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.
@@CyberCreator tysm
Hey uh, do you kniw how i can add sounds for opening and closing the door? Im new at roblox scripting stuff.
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)
Definitely using this in my game. Will credit!
you don't need to credit him it a basic script.
even though this was a year ago this guy is a awesome tutorial guy!
you helped me out to make a military gate thank you
Nice! Glad I could help with that!
Cool sliding doors!
Thanks!
Thank you so much!
ayo bro those tags at the bottom genius
Does it not work with certain parts, because I have tried so many times for this but it still seems to not open.
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!
Also is there a way to change the speed of the movement?
@@notdanni4753 4:05 Lol
@@pressedin yeah i managed to figure that out myself
@@notdanni4753 gotcha
Will the door glitch if we spam E? And is this going to work if we rotate it?
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?
Thank You
How would you do it if you wanted to make the door slide up?
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(“
what do i do if i wanted detail on the door how do i make it where the detail goes with the door?
Anyway to make it where the door makes a sfx when you open and close?
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)
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?
@@legoguy2511 How do I try this?
it doesnt work.
Hi, how can I slow the door down? It is opening way too quick for me!
Chance you could do it for a jail cell? So like its only one door?
I loved the tutorial but can you also ad a variation were it opens then after say 1 second it closes
How do i make the trigger on 2 different parts? I want to make a gate with 2 buttons.
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?
idea : make a proximity prompt when you press e money lost (leaderstats) and get a tool , clone to workspace (both)
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.
Bro tank you very much!👍👍👍
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?
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)
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)
@@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
My entire school in a reply
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.
i subbed :DDD
Do you know how i could make the door go up? And then down?
Is there any way for me to make the moving part move slower?
How do i make it go in other directions? I want it to go on the blue line(Z i think)
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.
Can I make juts one door move? im making a japanese sliding door so I was wondering
Hi, I scripted and built the door like you did, but none of the doors opened when I did the test
Still a good channel to go to for script help
Thank you!
tysm its working
Is there a way to make a group modeled door move like this?
What if I want to use something like a button to open the door. How do I do that?
I made my own core design for this to make a thing for core games
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.
omg me to lol
whay
what
why can you reply to every message?
EVER.
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?
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)
Subbed
Is there any way to make the doors slide slower?
thanks
what are these brackets? are they: {} because i cant see them
Great video
Glad you enjoyed it!
you can do the bombardier movie 346 train with open, close button, controls, opening close door pls i need for my game
When I press e the door opens but the proximity prompt doesnt show up again it just disapears, anyone know how to fix this?
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
Glad you figured it out! Thanks!
I hope this works for my horror game elevator
Anyone know how to add separate parts to the door? Tried welding it to the door but that didn't work.
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.
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
finally I can make a moving door
How can I alter the script to make grouped parts move, instead of welding parts onto other parts?
Same thing for me. He doesn't reply to comments anymore, I don't think.
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?
im no expert but maybe try grouping the parts using control g and naming them appropiately
@@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
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
How can I make a proximity prompt that when you use it, it gives you a badge?
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?
How do you make it so only specific people can open it?
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@
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.
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