Warn Command With Reason

Just assume that everything after the player, i.e. the second space, is the warning message. You know the command, you know the player, so the second space (if it exists) occurs at

string.len(";warn " .. playerToWarn.Name)

You then use string.sub to get everything after that point, and that’s the message.

5 Likes