Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local function onTouched (hit)
  2. local dir = script.Parent.Parent.Parent
  3. local lev = script.Parent.Parent
  4. if dir.pos.Value == 1 then
  5. dir.pos.Value = 2
  6. dir.Signal.Engine.BodyVelocity.velocity = Vector3.new(0,-5,0)
  7.  
  8.  
  9. lev.sigoff.p1.Transparency = 1
  10. lev.sigoff.p2.Transparency = 1
  11. lev.sigon.p1.Transparency = 0
  12. lev.sigon.p2.Transparency = 0
  13. else
  14. dir.pos.Value = 1
  15. dir.Signal.Engine.BodyVelocity.velocity = Vector3.new(0,5000,0)
  16. lev.sigoff.p1.Transparency = 0
  17. lev.sigoff.p2.Transparency = 0
  18. lev.sigon.p1.Transparency = 1
  19. lev.sigon.p2.Transparency = 1
  20.  
  21. end
  22.  
  23. end
  24. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement