Sliding Door Roblox Studio Tutorial
12:46
Roblox Click Detector Tutorial 2021
8:36
Пікірлер
@Irishcountryball247
@Irishcountryball247 2 күн бұрын
TYSM!
@Mr.Grinch.MtCrumpit.hotmail
@Mr.Grinch.MtCrumpit.hotmail 2 күн бұрын
it isnt working for me, the hinge just turns horizontal :(
@Dominusperson09
@Dominusperson09 4 күн бұрын
I can’t get the spring to go up and down even with your model and scripts 😢
@Cr4ZyCaptain
@Cr4ZyCaptain 5 күн бұрын
my doors orientation is to the left of the actual way its facing so when i put in for it to move to the X it move backwards tried all X,Y and Z but they all go the wrong way can anyone help?
@jaiSTARZs
@jaiSTARZs 5 күн бұрын
can u make one with a click detector
@EclipseEdits2
@EclipseEdits2 6 күн бұрын
does this work on r6?
@pencilonpaper1026
@pencilonpaper1026 19 күн бұрын
awesome tutorial. actually explains everything needed so people wont go back to endless tutorial hell :)
@alesthesilliest
@alesthesilliest 22 күн бұрын
would be nice if it works
@Hewyxy
@Hewyxy 23 күн бұрын
Hey guys, if it not working make sure that Part0 is a Door and Part1 is a Hinge, as well make sure that door is no anchored! (Hinge need to anchored)
@KeaweFaltstrom
@KeaweFaltstrom 25 күн бұрын
btw if there's anyone what does not know how to find the command bar, go to View at the top of the screen and it should be there
@neoe5970
@neoe5970 Ай бұрын
Im so sorry if it was mentioned in the video but I missed it, but how can I make the door swing the other way insted with the hinge in the same place ?
@CCProjects11
@CCProjects11 Ай бұрын
anyone know how to open the door opposing to where the player faces
@self-aware.npc.
@self-aware.npc. Ай бұрын
It’s not working 😢 Edit: Nvm guys it worked. I f up my script
@Test_749
@Test_749 Ай бұрын
i think he might be 26 now
@talonhenry1664
@talonhenry1664 Ай бұрын
can someone explain to me what a weld constraint is
@tuliprisha
@tuliprisha Ай бұрын
my friend has this download/extension where she's able to see ANYBODIES last played games. and shes gatekeeping it from me. do you know what it is??
@EmmPlaysGames-k8v
@EmmPlaysGames-k8v Ай бұрын
Script: local TweenService = game:GetService("TweenService") -- smooth animation local hinge = script.Parent.Hinge local prompt = script.Parent.Door.ProximityPrompt local goalOpen = {} goalOpen.CFrame = hinge.CFrame * CFrame.Angles(0, math.rad(90), 0) --getting current hinge CFrame and multiplying it so that it rotates it by 90 degrees. Converted to radians local goalClose = {} goalClose.CFrame = hinge.CFrame * CFrame.Angles(0, 0, 0) --does the same thing but closes the door now local tweenInfo = TweenInfo.new(1) --takes one second for the tween to open and close local tweenOpen = TweenService:Create(hinge, tweenInfo, goalOpen) --we want to tween/rotate the hinge 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)
@ianoble
@ianoble Ай бұрын
It did not work for me. any pro tips?
@plootus1
@plootus1 Ай бұрын
I made a multi directional version of the door so it swings both ways local TweenService = game:GetService("TweenService") local hinge = script.Parent.Hinge local prompt = script.Parent.Door.ProximityPrompt -- Set up hinge rotation for left and right direction local leftOpen = hinge.CFrame * CFrame.Angles(0, math.rad(90), 0) local rightOpen = hinge.CFrame * CFrame.Angles(0, math.rad(-90), 0) local closed = hinge.CFrame local tweenInfo = TweenInfo.new(1) local tweenLeftOpen = TweenService:Create(hinge, tweenInfo, { CFrame = leftOpen }) local tweenRightOpen = TweenService:Create(hinge, tweenInfo, { CFrame = rightOpen }) local tweenClose = TweenService:Create(hinge, tweenInfo, { CFrame = closed }) local doorIsOpen = false prompt.Triggered:Connect(function(player) if doorIsOpen then tweenClose:Play() doorIsOpen = false prompt.ActionText = "Open Door" else -- Determine the side of the door the player is on local playerPosition = player.Character and player.Character.PrimaryPart.Position or Vector3.new() local doorPosition = hinge.Position local direction = (playerPosition - doorPosition).Unit -- Open the door based on player position if direction:Dot(hinge.CFrame.RightVector) > 0 then tweenLeftOpen:Play() else tweenRightOpen:Play() end doorIsOpen = true prompt.ActionText = "Close Door" end end) so no matter what side of the door your on it will still open towards you
@lunar_mushrooms3559
@lunar_mushrooms3559 28 күн бұрын
THANK YOU IM JUST GONNA USE THIS I HAVE REALLY BAD EYE SIGHT SO HIM NOT WRITING WHAT ALL HIS CODE WAS IS A PAIN
@Cricket-he9be
@Cricket-he9be Ай бұрын
Uhh guys pls help me the hinge is moving opening ing and closing but the door is not
@colb8986
@colb8986 Ай бұрын
Even though I did this with the click service it was pretty easy to translate it over
@matejcerv
@matejcerv Ай бұрын
Really gud Tutorial. You are the best <3
@SillyPerrin
@SillyPerrin Ай бұрын
OMG my doors are so much better now I love it
@ItaAiways
@ItaAiways Ай бұрын
i need your help to scriprt my cockpit door of my plane plss do you have discord
@paweszutowicz5732
@paweszutowicz5732 Ай бұрын
just pinpointing my progress since i have to go to sleep soon and i cant stay up scripting, 4:11
@Attila_pecasati2
@Attila_pecasati2 Ай бұрын
making funny idea the The Shack joey The called the puzzle locks the doors gate a everything :3 coins
@LemonAnimator
@LemonAnimator Ай бұрын
bro thanks so muuch
@Siyar-e4n
@Siyar-e4n Ай бұрын
my door doesn't move when i open, it does change the open to close
@darkdudu2721
@darkdudu2721 Ай бұрын
IMPORTANT: Can you make the same door system but that opens when clicking a button
@EroticaMalone-ec8dc
@EroticaMalone-ec8dc 2 ай бұрын
Pro
@little_beluga
@little_beluga 2 ай бұрын
I hope it still works
@kamilothman1899
@kamilothman1899 2 ай бұрын
my door just flies instead of opening
@Maxgamers425
@Maxgamers425 2 ай бұрын
it does not work
@smiley26
@smiley26 14 күн бұрын
cuz it's a 3 year old video duh
@lastbreathsans2015
@lastbreathsans2015 2 ай бұрын
Is it possible to do this with players and open a GUI? I completely get it if you don't respond, as I am really late, but would appreciate it.
@DevCat-y7j
@DevCat-y7j 2 ай бұрын
Can you do a video for how to make a vertical mechanic door?
@Cebraiil
@Cebraiil 2 ай бұрын
Thanks man! this is what i was looking for!
@L.M.A-121
@L.M.A-121 2 ай бұрын
hey i just started learning how to script but theres one thing i can get down, i have a door made of multiple mesh parts but no scripts or anything, i welded all the parts together so its like a model but i can seem to script in it
@thekwatta3502
@thekwatta3502 2 ай бұрын
Genuinely no hate (disclaimer for comments), you might've noticed it yourself, and besides, it's been 3 years since your vid but you said it's equal to for a `=` operator. By now you might know the operator directly translates to "has the value of" rather than "equal to" `==`. One *assigns* the value to a variable and the other *compares* 2 variables, or in most languages, even comparing the returned object of a function. Other than that, you're a very, very great channel and I appreciate actual adults doing tutorials to the audience of all ages. I feel like adults mostly know what they're talking about but also actually have a more rich experience in conversating with different people who very much differ in ways of taking information. Which allows you to construct a universal-as-possible way to explain things to these differing people. That's worth every sub.
@guyonyoutubee
@guyonyoutubee 2 ай бұрын
ty
@arakodev
@arakodev 2 ай бұрын
BRO TYSM
@kingrogos
@kingrogos 2 ай бұрын
I going to touch u…
@SousthreeChaka
@SousthreeChaka 3 ай бұрын
You are the best ❤❤❤❤
@Jackyboiyes
@Jackyboiyes 3 ай бұрын
thank you SO MUCH
@thatlittlefroge
@thatlittlefroge 3 ай бұрын
how do you make it slower lets say for a bigger door, thanks in advance
@andrewsrobloxmoregamesands8963
@andrewsrobloxmoregamesands8963 3 ай бұрын
for some reason it's not working I need help
@CocovrCocovr
@CocovrCocovr 3 ай бұрын
Don’t you have to use wait for child?? 3:15
@MexicoandILIKERARE
@MexicoandILIKERARE 3 ай бұрын
3:21
@MexicoandILIKERARE
@MexicoandILIKERARE 3 ай бұрын
3.21
@LucaXtagVtag
@LucaXtagVtag 3 ай бұрын
Thank you for the tutorial, I followed the script and when I tested my game, tried to click or left click it Tweens so smoothly & perfect and it does indeed work in my game. :) 👍
@LucaXtagVtag
@LucaXtagVtag 3 ай бұрын
Thank you, I know what to do; this was absolutely a great X axis, Y axis and Z axis Vector3 tutorial. :) This is certainly a component for my game that I'm focusing on. 👍