Need help with chat commands

There is a much better way of doing commands. Things need to be more modular so that you can make more commands easily.

You could simply combine the other separate script together - not a big deal.

game.ReplicatedStorage.KickPlayer:FireServer(player, reason)

could be changed to player:Kick(reason) (in a script). I’ve also realised that anyone can execute this - if you’re intending to make this command for specific people, check for their player.UserId.

our game is wip. ik how to check the userid of the guy who executes that, ill add that later. thanks

He probably checks for that in the server script.

1 Like

you said it for me lol. its true i do that in the main server script that recieves the event

1 Like