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

Why doesn't this display above the players character? It is the chat service.

Asked by 8 years ago
function Talk(msg)
game:GetService("Chat"):Chat(game.players.LocalPlayer.Character.Head, msg, Enum.ChatColor.Blue)
end
Talk("Hello")

Ever since an update, this part of my script broke and now it doesn't do anything anymore. Why is that?

0
I've had this same issue. Ethan_Waike 156 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

First of all, you have lower case game.players while it should be game.Players.

If you have the filtering enabled, that might be another reason why this doesn't work. Well it should work only for the local player, but won't be visible to others.

Other than that, there isn't really anything wrong with this code.

0
I had the same problem, it works in game though, just not in studio for some reason. QuantumToast 261 — 8y
0
Sorry. Players was already defined. Relampago1204 73 — 8y
Ad

Answer this question