Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

chat not working?

Asked by 9 years ago
1player = game.Players.LocalPlayer
2mouse = player:GetMouse()
3casting = script.Parent:WaitForChild("Casting")
4 
5function Chant(msg)
6    game:GetService("Chat"):Chat(player.Character.Head, msg, Enum.ChatColor.Red)
7end
8wait(3)
9Chant("hi")

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

0
Does it every get pass the WaitForChild method call? BlackJPI 2658 — 9y
0
yeah it can even print the msg but doesnt chat it QuantumToast 261 — 9y

1 answer

Log in to vote
1
Answered by
DevSean 270 Moderation Voter
9 years ago

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.

2
upbagged UniversalDreams 205 — 9y
Ad

Answer this question