I have recently encountered some exploiting problems on my game and wish to create a script logger that I can then use to patch the scripts that they use. If anyone could help me and point me in which way to start it would be greatly appreciated!
Due to scripts executed into the client obtaining no Lua bytecode, there is no way for you to log the actual script instances. Instead, you can log what they do such as changing the Humanoid's walkspeed, etc
Example:
local player = game.Players.LocalPlayer local walkspeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed while true do wait() if player.Character.Humanoid.WalkSpeed ~= walkspeed then return -- punishment here end end
Unfortunately you can't log exploits. However, you can make vote kick systems for exploiters, an admin to ban/kick them, etc. These are at least somewhat better to defend against exploiters.