Advertisement
xmaanzach

JumpPad Tutorial

Jan 22nd, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. local toggle = false
  2. script.Parent.Touched:connect(function(hit)
  3.  
  4. if toggle == false then
  5. toggle = true
  6.  
  7. local force = Instance.new("BodyForce")
  8. force.Parent = hit.Parent.HumanoidRootPart
  9. force.Force = Vector3.new(0,5000,0)
  10. wait(.5)
  11. force:Destroy()
  12. end
  13. wait(.2)
  14. toggle = false
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement