Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Capsule = script.Parent.Parent
- local LeftDoor = Capsule.LeftDoor
- local RightDoor = Capsule.RightDoor
- local ClickDetector = script.Parent.ClickDetector
- ClickDetector.MouseClick:Connect(function()
- if LeftDoor.CanCollide == true then
- LeftDoor.CanCollide = false
- RightDoor.CanCollide = false
- LeftDoor.Transparency = 1
- RightDoor.Transparency = 1
- else
- LeftDoor.CanCollide = true
- RightDoor.CanCollide = true
- LeftDoor.Transparency = 0
- RightDoor.Transparency = 0
- end
- end)
Add Comment
Please, Sign In to add comment