Advertisement
InfinateSpectre

Auto TP To Ball & Auto Quick Tackle

Sep 13th, 2019
19,917
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.61 KB | None | 0 0
  1. --// Auto TP To Ball & Auto Quick Tackle //--
  2.  
  3.  
  4.  
  5. --// DO NOT EDIT BELOW THIS POINT //--
  6.  
  7.  
  8.  
  9. local m = Instance.new("Message")
  10. m.Parent = game.Workspace
  11. m.Text = "Auto TP Hacks EXECUTED!! ENJOY! :D"
  12. wait(2)
  13. m.Text = "Also, Subscribe to NoahNation on YouTube ;)"
  14. wait(4)
  15. m:Remove()
  16.  
  17. if game.PlaceId == 3694166020 then
  18.     local re = game.ReplicatedStorage.Remotes.CharacterSoundEvent
  19. elseif game.PlaceId == 427982975 then
  20.     local re = game.ReplicatedStorage.MainRemote
  21. end
  22. function ree(waitTime)
  23.     if waitTime == nil then
  24.         waitTime = 0.5
  25.     end
  26.     local Anim = Instance.new("Animation")
  27.     Anim.AnimationId = "rbxassetid://33796059"
  28.     local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
  29.     track:Play(.1, 1, 1e8)
  30.     wait(waitTime)
  31.     track:Stop()
  32. end
  33.  
  34. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  35.     if k == "1" then
  36.         function tpToBall()
  37.             local currentCFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  38.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace:FindFirstChild("Football").CFrame
  39.             re:FireServer("RemoteControls","catch")
  40.             re:FireServer("RemoteControls","catch")
  41.             re:FireServer("RemoteControls","catch")
  42.             re:FireServer("RemoteControls","catch")
  43.             re:FireServer("RemoteControls","catch")
  44.             re:FireServer("RemoteControls","catch")
  45.             re:FireServer("RemoteControls","catch")
  46.             wait(0.1)
  47.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = currentCFrame
  48.         end
  49.  
  50.         while wait() do
  51.             if game.Workspace:FindFirstChild("Football") then
  52.                 if (game.Workspace:FindFirstChild("Football").Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude <= 20 then
  53.                     for i = 1,10 do
  54.                         wait()
  55.                         tpToBall()
  56.                     end
  57.                 end
  58.             end
  59.         end
  60.     end
  61.     ---
  62.     if k == "2" then
  63.         --// Settings
  64.         local range = 10 -- How close you must be to the ballcarrier for auto-tackle to trigger.
  65.         local set = 0.5 -- I would not advise setting this to over 0.5 if you don't want to be caught straight off. The lower the setting, the more likely you will have to spam to make a successful tackle though.
  66.  
  67.         --// DO NOT EDIT ANYTHING BELOW THIS POINT
  68.  
  69.         local UserInputService = game:GetService('UserInputService')
  70.         local plr = game.Players.LocalPlayer
  71.         local Char = plr.Character
  72.  
  73.         while wait() do
  74.             game.workspace:WaitForChild(plr.Name)
  75.             for i,v in pairs(game.Players:GetChildren()) do
  76.                 game.workspace:WaitForChild(plr.Name)
  77.                 if game.workspace:WaitForChild(plr.Name) then
  78.                     if (game.workspace:WaitForChild(v.Name).HumanoidRootPart.Position - game.workspace:WaitForChild(game.Players.LocalPlayer.Name):WaitForChild("HumanoidRootPart").Position).magnitude <= range then
  79.                         if v.Character:FindFirstChild("Football") then
  80.                             ball = v.Character:FindFirstChild("Football")
  81.                             person = ball.Parent
  82.                             Pos = Char.HumanoidRootPart.CFrame
  83.                            
  84.                             ree()
  85.  
  86.                             for i = 1,10 do
  87.                                 wait(0.0001)
  88.                                 Char.HumanoidRootPart.CFrame = person.Torso.CFrame
  89.                                 Char.HumanoidRootPart.CFrame = person.Torso.CFrame
  90.                                 Char.HumanoidRootPart.CFrame = person.Torso.CFrame
  91.                                 Char.HumanoidRootPart.CFrame = person.Torso.CFrame
  92.                                 Char.HumanoidRootPart.CFrame = person.Torso.CFrame
  93.                                 re:FireServer("RemoteControls","hitstick")
  94.                                 re:FireServer("RemoteControls","hitstick")
  95.                                 re:FireServer("RemoteControls","hitstick")
  96.                                 re:FireServer("RemoteControls","hitstick")
  97.                                 re:FireServer("RemoteControls","hitstick")
  98.                             end
  99.                             wait(0.5)
  100.                             Char.HumanoidRootPart.CFrame = Pos
  101.                         end
  102.                     end
  103.                 end
  104.             end
  105.         end
  106.     end
  107. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement