Hi! I'm Robot Developer! On This Channel I Will Be Uploading Roblox Studio Tutorials!
❤ If You Enjoyed Some Of My Videos Please Subscribe It Motivates Me A Lot! ❤
Пікірлер
@ocsars
Ай бұрын
for those who want a fnaf door: local ClickDetector = script.Parent.ClickDetector local Door = script.Parent.Parent.Door local TweenService = game:GetService("TweenService") local doorUp = false -- Track the state of the door local upInfo = TweenInfo.new( 2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0 ) local downInfo = TweenInfo.new( 2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0 ) local upGoal = { Position = Vector3.new(Door.Position.X, Door.Position.Y + 6.3, Door.Position.Z) -- Adjust the Y position to move up } local downGoal = { Position = Door.Position -- Move back to the original position } local moveDoorUp = TweenService:Create(Door, upInfo, upGoal) local moveDoorDown = TweenService:Create(Door, downInfo, downGoal) ClickDetector.MouseClick:Connect(function() if doorUp then moveDoorDown:Play() else moveDoorUp:Play() end doorUp = not doorUp -- Toggle the door state end)
@THEDARKNESSKEEPSGROWING
15 күн бұрын
And for those who don't want a fnaf door just add a detection part with Touched and TouchEnded events
@Why_Not191
2 ай бұрын
Can someone please help me ive been looking in like 10 different videos at this point and none of them work ;-;
@terminatedline5114
2 ай бұрын
how do i make it slide up wards?
@bogdantiuca7360
Ай бұрын
put at Y + (a number how many studs to go up) but have 0 at the other ones
@terminatedline5114
Ай бұрын
@@bogdantiuca7360 thx
@thefishguys_yt5439
4 ай бұрын
WORKING, TYSM @LimitedSHH granted the code which is also working!
@stormisdumbmusic
4 ай бұрын
How would you slow down the movement?
@ThidDrutsburg
3 ай бұрын
On line 6, change the number .5 to something lower than that number.
@michaelguajardoj.r.6306
6 ай бұрын
This is a poor script, dont follow this tutorial
@mrmat-mc
7 ай бұрын
Nice dev i m dev too :D
@user-np7jk7oz8k
7 ай бұрын
How do I make the door stay open after I clicked the button?
@bogdantiuca7360
Ай бұрын
I am triying to figure out too
@Freddimatronic
7 ай бұрын
Didnt work what a waist of time
@thestopmotiongaming
7 ай бұрын
why is this hes only video?
@ItsVino_
8 ай бұрын
The Whole Script: local ClickDetector = script.Parent.ClickDetector local Door = script.Parent.Parent.Door local TweenService = game:GetService("TweenService") local Info = TweenInfo.new( 2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, true, 0 ) local goal = { Position = Vector3.new(Door.Position.X + 0, Door.Position.Y + 0,Door.Position.Z - 6.3) } local MoveDoor = TweenService:Create(Door, Info, goal) ClickDetector.MouseClick:Connect(function() MoveDoor:Play() end)
@jamiemunds4891
8 ай бұрын
me when i first started scripting: this is to harrd ARRRRRRRGGHHHHHHHHHH me when i script now: dude this is ezzz a baby could do this
@ReuHR
10 ай бұрын
it dosent work
@user-ms8nn3np6x
10 ай бұрын
model please It doesnt work for me :<
@amarondas-cm6rh
11 ай бұрын
Omg tysm!
@Bloxxers_rclNotAClanner
11 ай бұрын
Hello can you also make a tutorial where you need to find a keycard and insert it through the slot to openn the sliding door? this year on chewy you can get your firs- oh wait this is not advertisementland
@MrPotatoHead2
Жыл бұрын
thanks very much i really needed it for my myth game
@Baki659
Жыл бұрын
Thank you daddy
@kristjankk
Жыл бұрын
u not good
@marcelopl_
Жыл бұрын
THX
@Team_velocity326
Жыл бұрын
dose this still work in 2023
@ZentixValorant
Жыл бұрын
Works in 2023
@keyhitt952
Жыл бұрын
Sadly this does not work anymore
@tomata8417
Жыл бұрын
it does
@wickdmedia
Жыл бұрын
is there a way to make it group only
@Chronlus
Жыл бұрын
it wont let me click the button i have a the click detector
@ncljoy
Жыл бұрын
I used this to build a toilet.
@bober1008
Жыл бұрын
Thanks
@clostinthawindc3961
Жыл бұрын
disliked, this doesnt work and i typed all for nothing. include the script in the desc next time.
@pokecat1459
Жыл бұрын
sa marche pas
@superbobekcz39pico8
2 жыл бұрын
doesnt work
@tin4u101
2 жыл бұрын
I’m trying to make sliding up 💀💀
@bluexydevs8665
2 жыл бұрын
it does not work
@BaguetteBread1
2 жыл бұрын
Im getting this eroor Workspace.DoorModel.Button.DoorScript:17: attempt to index nil with 'Position'
@mryesntman8331
2 жыл бұрын
why does it always say: "Door is not a valid member of Part "Workspace.DoorModel.Button"
@gespnit
2 жыл бұрын
doesnt work for me, but great tutorial!
@MystWalk
2 жыл бұрын
It's not working, when i click the button it's useless.
@Yetha148
2 жыл бұрын
Hoe do you keep it in place?
@AGamingAlpha
2 жыл бұрын
⚠️for those who says it doesn’t work it does work it just can’t be in a model! If you have a door with detail with parts on it you would have to duplicate the script multiple parts and change the script a bit to work!
@somefoolishguy8072
2 жыл бұрын
Can it be a mesh?
@AGamingAlpha
2 жыл бұрын
@@somefoolishguy8072 I don’t know
@blenderbuilder405
2 жыл бұрын
i believe u can union it
@luckypen09
2 жыл бұрын
E
@alexjbgaming
2 жыл бұрын
But it didn’t work….
@pyrra581
2 жыл бұрын
does it work with models? ive been trying and it works with singular parts but ceases to function when i use a grouped model
@appropriatetotally955
2 жыл бұрын
The script can only move a singular part so if you want the whole model to move along you'll have to weld all the other parts with the base part. (Welded parts must be unanchored)
@kieor
2 жыл бұрын
Help? Its not working for me and the true and 0's are yellow instead of red..
@Termia1Allur3
2 жыл бұрын
how do I keep the door open for a little?
@appropriatetotally955
2 жыл бұрын
you'll have to write a "reverse" tween for the closing if you want to customise it
@C.I.N.1
2 жыл бұрын
can someone help? im trying to add only 10 to the y and 0 to the others but it is moving diagonally In other axises for some reason
@jon-en7kz
2 жыл бұрын
It would be 0, 10, 0 inside the ()
@archaniksee8476
2 жыл бұрын
Thanks u helped me
@shadow_luc
2 жыл бұрын
script doesn't work, even tried using one that a commenter said "worked", still didn't work i rate this a 0 out of 2 trillion
@C.I.N.1
2 жыл бұрын
paste your script here ill look at it
@landonhampton3799
2 жыл бұрын
does this work with model doors? like doors that are a model and grouped together and stuff
@bolf0
2 жыл бұрын
sadly, no, and i've learned that from experience
@shadeoverseer279
Жыл бұрын
No
@nekoguest388
Жыл бұрын
@@bolf0 union can
@triplets.of.roblox
2 жыл бұрын
These comments aren't very helpful, just make sure you type everything accurately and anchor all the parts involved.
@triplets.of.roblox
2 жыл бұрын
I'm sorry, this didn't work. I've tried anchoring and unanchoring, but unfortunately this script is outdated.
@triplets.of.roblox
2 жыл бұрын
Just kidding I typed it wrong lol
@ThePaleoZoo14
2 жыл бұрын
Can you do this but with a key please? Thank you
@ImpastaTronic78
2 жыл бұрын
If someone wanders, here is the script: local ClickDetector = script.Parent.ClickDetector local Door = script.Parent.Parent.Door local TweenService = game:GetService("TweenService") local info = TweenInfo.new( 2, Enum.EasingStyle.Sine Enum.EasingDirection.Out 0, true, 0 ) Local Goal = { Position = Vector3.new(Door.Position.X + 0, Door.Position.Y + 0,Door.Position.z -6.3) } local MoveDoor = TweenService:Create(Door, Info, Goal) ClickDetector.MouseClick:Connect(function() MoveDoor:Play() end)
@backerson5576
2 жыл бұрын
you forgot some commas there dude, check it again
@archaniksee8476
2 жыл бұрын
Thanks
@notyem
2 жыл бұрын
thanks
@zantvr6314
2 жыл бұрын
thanks a bunch
@officalbaconhairgaming7337
Жыл бұрын
bro your script is horrible you didnt even do it right
@a_xxurii4307
2 жыл бұрын
i got it to work but I'm not sure how make it stay open until the button is clicked. can anyone help me?
@oidz4848
2 жыл бұрын
Replace the True on local info to False. Hope this helped!
Пікірлер