it isnt working for me, the hinge just turns horizontal :(
@Dominusperson094 күн бұрын
I can’t get the spring to go up and down even with your model and scripts 😢
@Cr4ZyCaptain5 күн бұрын
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?
@jaiSTARZs5 күн бұрын
can u make one with a click detector
@EclipseEdits26 күн бұрын
does this work on r6?
@pencilonpaper102619 күн бұрын
awesome tutorial. actually explains everything needed so people wont go back to endless tutorial hell :)
@alesthesilliest22 күн бұрын
would be nice if it works
@Hewyxy23 күн бұрын
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)
@KeaweFaltstrom25 күн бұрын
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Ай бұрын
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Ай бұрын
anyone know how to open the door opposing to where the player faces
@self-aware.npc.Ай бұрын
It’s not working 😢 Edit: Nvm guys it worked. I f up my script
@Test_749Ай бұрын
i think he might be 26 now
@talonhenry1664Ай бұрын
can someone explain to me what a weld constraint is
@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Ай бұрын
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Ай бұрын
It did not work for me. any pro tips?
@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_mushrooms355928 күн бұрын
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Ай бұрын
Uhh guys pls help me the hinge is moving opening ing and closing but the door is not
@colb8986Ай бұрын
Even though I did this with the click service it was pretty easy to translate it over
@matejcervАй бұрын
Really gud Tutorial. You are the best <3
@SillyPerrinАй бұрын
OMG my doors are so much better now I love it
@ItaAiwaysАй бұрын
i need your help to scriprt my cockpit door of my plane plss do you have discord
@paweszutowicz5732Ай бұрын
just pinpointing my progress since i have to go to sleep soon and i cant stay up scripting, 4:11
@Attila_pecasati2Ай бұрын
making funny idea the The Shack joey The called the puzzle locks the doors gate a everything :3 coins
@LemonAnimatorАй бұрын
bro thanks so muuch
@Siyar-e4nАй бұрын
my door doesn't move when i open, it does change the open to close
@darkdudu2721Ай бұрын
IMPORTANT: Can you make the same door system but that opens when clicking a button
@EroticaMalone-ec8dc2 ай бұрын
Pro
@little_beluga2 ай бұрын
I hope it still works
@kamilothman18992 ай бұрын
my door just flies instead of opening
@Maxgamers4252 ай бұрын
it does not work
@smiley2614 күн бұрын
cuz it's a 3 year old video duh
@lastbreathsans20152 ай бұрын
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-y7j2 ай бұрын
Can you do a video for how to make a vertical mechanic door?
@Cebraiil2 ай бұрын
Thanks man! this is what i was looking for!
@L.M.A-1212 ай бұрын
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
@thekwatta35022 ай бұрын
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.
@guyonyoutubee2 ай бұрын
ty
@arakodev2 ай бұрын
BRO TYSM
@kingrogos2 ай бұрын
I going to touch u…
@SousthreeChaka3 ай бұрын
You are the best ❤❤❤❤
@Jackyboiyes3 ай бұрын
thank you SO MUCH
@thatlittlefroge3 ай бұрын
how do you make it slower lets say for a bigger door, thanks in advance
@andrewsrobloxmoregamesands89633 ай бұрын
for some reason it's not working I need help
@CocovrCocovr3 ай бұрын
Don’t you have to use wait for child?? 3:15
@MexicoandILIKERARE3 ай бұрын
3:21
@MexicoandILIKERARE3 ай бұрын
3.21
@LucaXtagVtag3 ай бұрын
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. :) 👍
@LucaXtagVtag3 ай бұрын
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. 👍