Pepperpants

Roblox Ride Cframe Door Script

Mar 7th, 2023
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | Gaming | 0 0
  1. collision = true
  2. function ButtonDoor()
  3.     if collision == true then
  4.         script.Parent.Mesh.Offset = Vector3.new(0,-0.5,0)
  5.         collision = false
  6.         wait(0.3)
  7.         script.Parent.Mesh.Offset = Vector3.new(0,0,0)
  8.  
  9.         script.Parent.Parent.Door.CanCollide = false
  10.         script.Parent.Parent.Name = "Enjoy the ride!"
  11.         wait(5)
  12.         script.Parent.Parent.Name = "Click to go!"
  13.         script.Parent.Parent.Door2 .CanCollide = true
  14.     end
  15. end
  16.  
  17. script.Parent.ClickDetector.MouseClick:connect(ButtonDoor)
Advertisement
Add Comment
Please, Sign In to add comment