Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

chat not working?

player = game.Players.LocalPlayer
mouse = player:GetMouse()
casting = script.Parent:WaitForChild("Casting")

function Chant(msg)
	game:GetService("Chat"):Chat(player.Character.Head, msg, Enum.ChatColor.Red)
end
wait(3)
Chant("hi")

for some reason I cant see my chat, nothings in the output but it does appear help please.

2 comments

0

Does it every get pass the WaitForChild method call?

0

yeah it can even print the msg but doesnt chat it

1 answer

✓ Accepted answer

There is a post on the developer forums about this not working in studio, I assume this is your problem.

Upload this to a game and test it online and it should work.

1 comment

2

upbagged

This discussion is preserved as it was. New answers, comments, and votes are closed.