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

chat not working?

Asked by 8 years ago
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.

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

1 answer

Log in to vote
1
Answered by
DevSean 270 Moderation Voter
8 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 — 8y
Ad

Answer this question