Advertisement
InfinateSpectre

Untitled

Dec 7th, 2019
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.09 KB | None | 0 0
  1. --[[
  2.     TP TO FOOTBALL [Football Fusion Version]
  3. ]]
  4. --[[
  5.     Loadstring Version:
  6.  
  7.     loadstring(game:HttpGet("https://pastebin.com/raw/DhH4ZUqF",true))()
  8.  
  9.  
  10. --]]
  11.  
  12.  
  13.  
  14. --// Main Variables
  15. local plr = game.Players.LocalPlayer
  16. local char = plr.Character
  17. local rootPart = char.HumanoidRootPart
  18. local hum = char.Humanoid
  19.  
  20. --// Other Variables
  21. local range = 20
  22. local count = 0
  23.  
  24. --// Functions
  25. function getFbParent()
  26.     for i,v in pairs(game.workspace:GetDescendants()) do
  27.         if v.Name == "Football" then
  28.             return v.Parent
  29.         end
  30.     end
  31. end
  32.  
  33. function catchRemote()
  34.     for i = 1,10 do
  35.         game.ReplicatedStorage.Remotes.CharacterSoundEvent:FireServer("PlayerActions","catch")
  36.         wait()
  37.     end
  38. end
  39.  
  40. --// Main Code
  41. while wait() do
  42.     if game.workspace:FindFirstChild("Football") then
  43.         if (game.workspace:WaitForChild("Football").Position - rootPart.Position).magnitude <= range then
  44.             repeat
  45.                 catchRemote()
  46.                 rootPart.CFrame = game.workspace:WaitForChild("Football").CFrame
  47.                 count = count + 1
  48.                 wait()
  49.             until getFbParent():FindFirstChild("Humanoid") or getFbParent():FindFirstChild("Football").Position.Y <= -5 or count == 10
  50.         end
  51.     end
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement