--BROUGHT TO YOU BY RobloxScripter.com!--
local tr = false
local Mouse = game.Players.LocalPlayer:GetMouse()
game:GetService("UserInputService").InputBegan:Connect(function(key, gpe)
if key.KeyCode == Enum.KeyCode.X and not gpe and tr == false then
tr = true
for i, v in pairs(game.Players:GetPlayers()) do
local char = game.Players.LocalPlayer.Character
if v.Name ~= char.Name and (v.Character.Torso.CFrame.p - char.Torso.CFrame.p).Magnitude 0.5 and v.Character:FindFirstChild("Basketball") then
char.Humanoid:MoveTo(v.Character.Torso.CFrame.p + v.Character.Torso.Velocity.unit * 7)
elseif v.Character.Torso.Velocity.magnitude < 0.5 and v.Character:FindFirstChild("Basketball") then
char.Humanoid:MoveTo(v.Character.Torso.CFrame.p)
elseif not v.Character:FindFirstChild("Basketball") then
tr = false
end
wait()
end
end
end
elseif key.KeyCode == Enum.KeyCode.X and not gpe and tr == true then
tr = false
end
end
)