Roblox | How to make a Sliding Lever Door HD

09.10.2016
Hope this helps! ----------------------------------------------------------------------- Script: local check = true local door = script.Parent.Parent.Parent.Door local function on() check = true script.Parent.Parent.LowerLever.Transparency = 1 script.Parent.Parent.UpperLever.Transparency = 0 for i = 1, 20 do door.CFrame = door.CFrame + Vector3.new(0,-0.4,0) wait() end end local function off() check = false script.Parent.Parent.LowerLever.Transparency = 0 script.Parent.Parent.UpperLever.Transparency = 1 for i = 1, 20 do door.CFrame = door.CFrame + Vector3.new(0,0.4,0) wait() end end local function Click() if check == true then off() else on() end end script.Parent.ClickDetector.mouseClick:connect(Click) ------------------------------------------------------------------------ Music: Alan Walker - Fade [NCS Release] Music provided by: NoCopytightSounds: https://www.youtube.com/user/NoCopyrightSounds Link to the track: https://www.youtube.com/watch?v=bM7SZ5SBzyY Artist: Alan Walker ? Facebook https://www.facebook.com/DJWalkzz ? SoundCloud https://soundcloud.com/walkzz ? Twitter https://twitter.com/IAmAlanWalker ? YouTube https://www.youtube.com/user/DjWalkzz Subscribe to my channel: https://www.youtube.com/channel/UC1YcXhEJ6-UH5nTqn1ht0Rg

Похожие видео

Показать еще