Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

anti exploit having multiple errors?

Hello why dis no wxrk

PlayerJoinGame:ConnectThis()


if player.Hacking then
 BanPlayerFromGame("Hacking = Ban")
end


end

1 comment

2

that's not how lua scripting works? I recommend looking at the devoforum (https://devforum.roblox.com) or looking at some scripting tutorials.

1 answer

first things first. If this is in a local script, you refer to player like this:

game.Players.LocalPlayer

second, the player doesn't have a built in value to see if the player is actually exploit. You have to detect it yourself. For example to detect if someone is speedhacking you wanna do this:

if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed > 17 then
	game.Players.LocalPlayer:Kick("Don't speed hack >:(")
end

that's to stop a Mr Gotta-go-fast (sadly it is easy to bypass).

for other types of hacking (E.g fly hacking, tp hacking etc), you have to know how the hack script works, or else your anti cheat won't work.

2 comments

0

it's a slow process but you'll get there

0

OR just make a reporting system and a ban command

This discussion is preserved as it was. New answers, comments, and votes are closed.