Advertisement
karobloxYT

twen

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