I have been trying to make an NPC chat using the :Chat() function but whenever I change the colour to white, it doesn’t show up. I have tried this with the red and other colours and they all work fine but when it is white chat it doesn’t work.
the code for this:
local ChatService = game:GetService("Chat")
local part = game.Workspace.Part
wait(6)
game:GetService("Chat"):Chat(part, "we do a little trolling", "White")
print("did")
The third argument of the Chat function is enum (integer), not a string.
Try doing game:GetService("Chat"):Chat(part, "we do a little trolling", Enum.ChatColor.White)
oh yeah lol thats because i took the code sample off of the roblox page for the chat function and then found another one when i tried to look for the fix for the thing that is happening to me
well i figured it out it turns out it was because i was just running it at runtime using a wait which for some reason didn’t work but when i changed it to fire the chat message when i click the part instead it works perfectly fine so idk why it wasn’t working