I'm attempting to make a script where when I say a particular word in chat, a script executes I've got that part down, but the script I'm using to change my face into a decal isn't working. (Attempted Face Change Script starts at Line 4 and ends at Line 8. The script is in a LocalScript, located in StarterPlayer, StarterPlayerScripts.
Error: Face is not a valid member of Part.
god = game.Players.DontBlinkDrWho -- who's chat the commands respond to
function onChatted(msg)
if msg == "=)" then
local players = game.Players:GetPlayers()
local face1 = "rbxassetid://456163909"
local face = game.Players.DontBlinkDrWho.Character.Head.Face.Decal
game.Players.DontBlinkDrWho.Character.Head.Face.Decal = face1
end --this ties up the command
end --put this extra end after the last end of every command.
god.Chatted:connect(onChatted) --connects the function

2 comments
Have you tried changing "http://www.roblox.com/asset/?id=456163909" to "rbxassetid://456163909"?
I changed it. In developer console I get this error. "Head is not a valid member of Player."