Roblox Walkspeed Magnitude Check
local plrs = game.Players
local distanceCheck = 18
local i = 0;
plrs.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local head = char:FindFirstChild("Head")
if head then
while true do wait()
local Success,Error = pcall(function()
local oldPos = head.Position
wait(1)
local magnitude = (head.Position - oldPos).Magnitude
if magnitude >= distanceCheck then
head.CFrame = CFrame.new(oldPos)
i = i + 1
end
if i >= 10 then
plr:Kick("You have been kicked for potential exploiting.")
end
end)
end
end
end)
end)
slixx.