Here is the script:
local jun = game.Players.LocalPlayer
Stuff = false
function ssj()
if Stuff == false then
Stuff = true
demm1 = Instance.new("Decal")
demm1.Name = demm1
demm1.Texture = game.ReplicatedStorage.Dem1.Texture
demm1.Face = game.ReplicatedStorage.Dem1.Face
demm1.Parent = jun.Character.Head
end
function nossj()
demm1:Destroy()
end
jun.Chatted:connect(function(Msg)
local msg = Msg:lower()
if string.sub(msg, 1, 7) == "demon1" then
wait(0.1)
ssj()
end
if string.sub(msg, 1, 13) == "dem1" then
wait(0.1)
ssj()
end
if string.sub(msg, 1, 6) == "/e dem1" then
wait(0.1)
ssj()
end
if string.sub(msg, 1, 10) == "/e off" then
wait(0.1)
nossj()
end
if string.sub(msg, 1, 3) == "off" then
wait(0.1)
nossj()
end
end)
end
It is supposed to put a decal on the local player's face when he/she says certain words,the game is filtering enabled and to repeat the output is clear.I would appreciate some help.

2 comments
you didnt end the if statement, you didnt set stuff back to false after the statement ended (in case "stuff" was used to debounce) and you didnt put local before the functions
Works, thanks <3