while true do game:GetService("Chat"):Chat(head, ChatColor.Red, getRandomPhrase()) wait(5) end
This is a fragment of a script, I'm not sure why it can't display the Chat on the NPC's head. Can someone help me?
You're mixing up the ChatColor and the message, and it is Enum.ChatColor.Red
game:GetService("Chat"):Chat(head, getRandomPhrase(), Chat(head, getRandomPhrase(), Enum.ChatColor.Red)
If this doesn't work, check out your function getRandomPhrase()
. Make sure it's returning a string value.