--BROUGHT TO YOU BY RobloxScripter.com!--
getgenv().power = 0.01
local player = game.Players.LocalPlayer
local root = player.Character:FindFirstChild("HumanoidRootPart")
function getBall()
local dist = 6969
local closest
root = player.Character:WaitForChild("HumanoidRootPart")
for i,v in pairs(game:GetService("Workspace").ClientBalls:GetChildren()) do
if (root.Position - v.Position).Magnitude < dist then
closest = v
dist = (root.Position - v.Position).Magnitude
end
end
return closest
end
function Hup()
local ohCFrame1 = root.CFrame
game:GetService("ReplicatedStorage").UpdateHumanoidRootPart:FireServer(ohCFrame1)
local ohNumber1 = power
local ohCFrame2 = game:GetService("Workspace").Camera.CFrame
ohCFrame2 = CFrame.lookAt(ohCFrame2.Position, ohCFrame2.Position + Vector3.new(math.random(-2000,2000),math.random(-2000,2000),0))
local ohString3 = "Front"
game:GetService("ReplicatedStorage").Kick:FireServer(ohNumber1, ohCFrame2, ohString3)
end
while task.wait() do
root = player.Character:WaitForChild("HumanoidRootPart")
root.CFrame = getBall().CFrame
Hup()
end