How to make a Command that changes the face?
Asked by
5 years ago Edited 5 years ago
okay so i'm really bad at scripting and i would like some help with this. I need help making a script that makes it so when i say a certain word it adds a Decal to the head on the player.
Here's what i got:
01 | local player = game.Players.LocalPlayer |
02 | local char = player.Character |
03 | local marks = game.Lighting.mark:Clone() |
06 | player.Chatted:Connect( function (Msg) |
07 | local msg = Msg:lower() |
08 | if string.sub(msg, 1 , 5 ) = = "demon" then |
10 | marks.Parent = char.Head |
12 | if string.sub(msg, 1 , 3 ) = = "off" then |
22 | player.Chatter:Connect(onChatted) |
really bad but its only what i got