Advertisement
Ben_Scripts343

Click fling tp[Click e to teleport and f delete tp loop]

Jun 25th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. local plr=game.Players.LocalPlayer
  2. local ms=plr:GetMouse()
  3. local torso=plr.Character.Torso
  4. local hum=plr.Character.HumanoidRootPart
  5. local hum1=hum.CFrame
  6. local t1=Instance.new("Attachment",torso)
  7. local align=Instance.new("AlignPosition",torso)
  8. local t2=Instance.new("Attachment")
  9. align.RigidityEnabled=true
  10. align.Attachment0=t1
  11.  
  12. ms.KeyDown:connect(function(k)
  13. if k =="e" then
  14. if ms.Target.Parent:FindFirstChild("Humanoid") then
  15. t2.Parent=ms.Target.Parent:FindFirstChild("Torso")
  16. ms.Target.Parent:FindFirstChild("Torso").CanCollide=false
  17. wait(.2)
  18. align.Attachment1=t2
  19. local bt=Instance.new("BodyThrust",torso)
  20. bt.Force=Vector3.new(406,3,460)
  21. bt.Location=torso.Position
  22. hum1=hum.CFrame
  23. end
  24. end
  25. end
  26. )
  27.  
  28. ms.KeyDown:connect(function(k)
  29. if k =="f" then
  30. hum.CFrame=hum1
  31. wait(.4)
  32. align.Attachment1=nil
  33. torso.BodyThrust:Remove()
  34. end
  35. end
  36. )
  37.  
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement