Advertisement
ZEE_TerminatorFX

Untitled

Jun 22nd, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. --credit to aze
  2. local m = game:GetService("Players").LocalPlayer:GetMouse()
  3.  
  4. local ts = game:GetService("TweenService")
  5.  
  6. m.Button1Up:Connect(function()
  7. if m.Target then
  8. local target = m.Target
  9. local time = TweenInfo.new(((target.Position - game:service'Players'.LocalPlayer.Character.Head.Position).magnitude / 80))
  10. local data = {CFrame = CFrame.new(m.Hit.p.X, m.Hit.p.Y + 10, m.Hit.p.Z)}
  11. local tween = ts:Create(game:service'Players'.LocalPlayer.Character.HumanoidRootPart, time, data)
  12. tween:Play()
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement