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?
function onChatted(message, speaker) local player = speaker.Character local msg = string.lower(message) if msg == "chathere" then player.CharacterAppearance = 6315210 game.Players:getPlayerFromCharacter(newplayer) newplayer:BreakJoints() end end
I believe this is what you want. If it isn't then please tell me and I can relook and give another one that should defiantly work
- NinjoOnline
function onChatted(message,speaker) local chr=speaker.Character local msg=string.lower(message) if msg=="chathere" then speaker.CharacterAppearance=6315210 wait(1) chr.Humanoid.Health=0 end
This answer was brought to you by Chipio Industries