Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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:

01local player = game.Players.LocalPlayer
02local char = player.Character
03local marks = game.Lighting.mark:Clone()
04 
05 
06player.Chatted:Connect(function(Msg)
07 local msg = Msg:lower()
08 if string.sub(msg, 1, 5) == "demon" then
09 wait(0.1)
10  marks.Parent = char.Head
11 end
12 if string.sub(msg, 1, 3) == "off" then
13 wait(0.1)
14  marks:Destroy()
15 end
View all 22 lines...

really bad but its only what i got

0
so how exactly does string.sub(msg, 1, 7) == "Demon" HappyTimIsHim 652 — 5y
0
i asked for help ReaperMr 0 — 5y
0
yes and i fixed it i chaned it to msg, 1, 5 but still aint working ReaperMr 0 — 5y

Answer this question