Hello, good morning, I need help with something and I would really appreciate it since there is someone who has been hacking my game and playing music, so I would like to know how to make a script that when detecting an exploit expels the player or a script that bans the player play the game as such, I would really appreciate your help. Thanks
1 Like
If you know there user name than you can go there profile and get there user id, then add a script like this to kick them/ban them
game.Players.PlayerAdded:Connect(function(player)
if player.UserId == "there id" then
player:Kick()
end
end)
edit: writing this not on studio so some parameters might be wrong
1 Like
thank you very much, it will help me too much
1 Like