Hello why dis no wxrk
PlayerJoinGame:ConnectThis()
if player.Hacking then
BanPlayerFromGame("Hacking = Ban")
end
end
Hello why dis no wxrk
PlayerJoinGame:ConnectThis()
if player.Hacking then
BanPlayerFromGame("Hacking = Ban")
end
end
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.
it's a slow process but you'll get there
OR just make a reporting system and a ban command
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
that's not how lua scripting works? I recommend looking at the devoforum (https://devforum.roblox.com) or looking at some scripting tutorials.