Using Cmdr to make a ban system. Followed a video’s instructions, and tried integrating it into Cmdr.
Everything should be working fine, but then it got this error,
This is the line of code responsible:
plrdata is a table containing the username and reason for the ban:
{
[1] = Xanthys,
[2] = "exploiting"
}
I don’t know how else I can describe this problem, so heres the full code:
Yeah, then it’s not a player name, but rather the Player object itself. So therefore, you are trying to send it via MessagingService… You need to do player.Name to get the name
Right now you are only banning one player, so therefore this statement is really unnecessary. Basically it’s saying you’re trying to use the length operator on an Instance, which is not how it’s used… You could just do return "Banned player for: " .. reason