function onChatted(message, speaker)
local player = speaker.Character
local msg = string.lower(message)
if msg == "chathere" then
player.CharacterAppearance = 6315210
end
I'm making a command script that when you say "chathere", it changes your appearance to the ID specified in "player.CharacterAppearance = 6315210".
How do I make it that it will kill the local player afterwards?

4 comments
does the script work so far, so they get the characterappearance??
Dude don't down rate for getting the question wrong you noob. Down rated for unfair rating and reporting to admins, don't just down rate cause someone tried and they didnt get it right, you are no where close to killing the player so you have no right
Sorry for late reply. NinjoOnline, it says on "newplayer" that "W001: Unknown global" in the script editor.
Also, I didn't down rate your answer.