RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a roblox anti cheat for a anti speed"
-- server script local Players = game:GetService("Players") local function onCharacterAdded(character) local humanoid = character:WaitForChild("Humanoid") humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function() if humanoid.WalkSpeed > 16 then humanoid.WalkSpeed = 16 local player = Players:GetPlayerFromCharacter(character) if player then player:Kick("Speed hacking is not allowed.") end end end) end local function onPlayerAdded(player) player.CharacterAdded:Connect(onCharacterAdded) if player.Character then onCharacterAdded(player.Character) end end Players.PlayerAdded:Connect(onPlayerAdded) for _, player in ipairs(Players:GetPlayers()) do onPlayerAdded(player) end