Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LDoor = script.Parent.Parent.LDoor
- RDoor = script.Parent.Parent.RDoor
- function onTouched(touch)
- if debounce == true then
- debounce = false
- for i=1, 8 do
- LDoor.CFrame = CFrame.new(LDoor.CFrame.x + 0.8,LDoor.CFrame.y,LDoor.CFrame.z)
- RDoor.CFrame = CFrame.new(RDoor.CFrame.x - 0.8,RDoor.Cframe.y,RDoor.CFrame.z)
- end
- wait(1)
- for i=1,8 do
- LDoor.CFrame = CFrame.new(LDoor.CFrame.x - 0.8,LDoor.CFrame.y,LDoor.CFrame.z)
- RDoor.CFrame = CFrame.new(RDoor.CFrame.x + 0.8,RDoor.Cframe.y,RDoor.CFrame.z)
- wait()
- end
- debounce = true
- end
- end
- script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment