--BROUGHT TO YOU BY RobloxScripter.com!--
local players = game:service('Players')
local player = players.LocalPlayer
local character = player.Character
local doing = false
local keybind = "z"
--Functions
game.Players.LocalPlayer:GetMouse().KeyDown:connect(
function(Key)
if Key:lower() == tostring(keybind) and doing == false then
doing = true
for i,v in pairs(players:GetPlayers()) do
if v.Name ~= character.Name and (v.Character.Torso.CFrame.p - character['Torso'].CFrame.p).Magnitude 0.2 then
character.Humanoid:MoveTo(v.Character.Torso.CFrame.p + v.Character.Torso.Velocity.unit * 4)
else
character.Humanoid:MoveTo(v.Character.Torso.CFrame.p)
end
wait()
end
end
end
elseif Key:lower() == keybind and doing == true then
doing = false
end
end)