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

Using Kick() method correctly? Need help understanding.

I know :Kick() kicks a player. But how do I add a custom message? for example "You have been kicked because the opponent left" or something? When I use Kick() it only kicks them.

On wiki;

void Kick ( string message = "" )

I'm not sure how to use it?

Maybe it's :Kick('You have been kicked due to smething')

or

:Kick(string message = "You have been kicked due to something")

or maybe something else, I'm sorry I don't understand but I barely know what Roblox wiki is talking about.

1 answer

✓ Accepted answer

When it says that, it means it needs a string value. For example,

game.Players.Hacker:Kick('You have been banned for hacking.')

2 comments

0

Not "banned", but kicked.

0

Well you can repeatedly kick them like a ban. They wont be able to connect for long.

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