loueque

StudDetector

Aug 7th, 2020 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. --Howdy! Please don't touch the code (if you're inside studio) if you know what you are doing!
  2.  
  3. local Part = script.Parent
  4.  
  5. Part.ClickDetector.MouseClick:Connect(function(clicked)
  6. Part.Transparency = 0.25
  7. Part.CanCollide = false
  8. Part.Position = Part.PositionForGate.Position
  9. Part.Orientation = Part.PositionForGate.Orientation
  10. Part.ClickDetector.MaxActivationDistance = 0
  11.  
  12. wait(4)
  13.  
  14. Part.Transparency = 0
  15. Part.CanCollide = true
  16. Part.Position = Part.SecondPositionForGate.Position
  17. Part.Orientation = Part.SecondPositionForGate.Orientation
  18. Part.ClickDetector.MaxActivationDistance = 32
  19.  
  20. end)
  21.  
  22. --DISCLAIMER: PLEASE DON'T TOUCH THE GATES INSIDE THE MODEL AS IT MAKE THE CODE NOT WORK AS IT SHOULD!
Add Comment
Please, Sign In to add comment