Roblox Scripting Tutorial: Anti Exploit Script.

Опубликовано: 20 Июнь 2026
на канале: Epic
381
9

Hey Guys!
Today we are making an anti exploit! Read below! (Very Simple!)

This will kick the user when it's values change from the normal humanoid.

1. Insert a local script into 'StarterPlayerScripts' which can be found under StarterPlayer.

2. Enter this script:
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
repeat wait() until LocalPlayer.Character

while true do
wait()
if LocalPlayer.Character.Humanoid.WalkSpeed ~= 16 then
LocalPlayer:Kick("Exploiting")
wait(10)
end
end

This will kick the player when it's speed changes, simple.

3. Add another local script to 'StarterPlayerScripts' and paste this:
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
repeat wait() until LocalPlayer.Character

while true do
wait()
if LocalPlayer.Character.Humanoid.MaxHealth ~= 100 then
LocalPlayer:Kick("Exploiting")
wait(10)
end
end

This will kick the user for changing their health, now let's do jump power.
4. Same as above, paste this into the next script:
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
repeat wait() until LocalPlayer.Character

while true do
wait()
if LocalPlayer.Character.Humanoid.JumpPower ~= 50 then
LocalPlayer:Kick("Exploiting")
wait(10)
end
end

This will kick people using jump power exploits, now go test it out as I did! or run admin!

Thanks for reading, hope this helped and worked. Comment below on anything that didn't work or messed up. :D

*Please like and subscribe for more tutorials.*