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

This scripts works in Studio but not in public game?

I don't know why, but it only works in studio. I defined all the variables beforehand.....what's wrong?

player=game.Players.LocalPlayer

function chat(chat)
_G.C6=_G.C5
_G.C5=_G.C4
_G.C4=_G.C3
_G.C3=_G.C2
_G.C2=_G.C1
_G.C1=player.Name..": "..chat

end

player.Chatted:connect(chat)

1 answer

✓ Accepted answer

_G client sided is replicated to all localscripts within that client, not all the clients. You need to do this server-sided.

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