Advertisement
All_HollowsEve

trackerball

Jul 24th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. local Player = game.Players.All_HollowsEve
  2. local part = Instance.new("Part", workspace)
  3. part.Size = Vector3.new(2,2,2)
  4. part.Shape = "Ball"
  5. part.Anchored = true
  6. local target = game.workspace
  7. local player = game.workspace
  8. function hit(part)
  9. if part.Name ~= "Base" then
  10. part:Remove()
  11. end
  12. end
  13. spawn(function()
  14. while true do
  15. wait()
  16. if game.workspace:FindFirstChild(player) then
  17. part.CFrame = part.CFrame:lerp(target.CFrame,.08)
  18. part.Touched:connect(hit)
  19. else
  20. part.CFrame = part.CFrame:lerp(CFrame.new(30,30,30),.08)
  21. end
  22. end
  23. end)
  24. function chatted(msg)
  25. if msg:sub(1,5) == "targ?" then
  26. player = game.workspace:FindFirstChild(msg:sub(6))
  27. target = player.Torso
  28. end
  29. end
  30.  
  31. Player.Chatted:connect(chatted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement