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

Help with PlayerAdded Event?

I'm trying to create a Chat log thing with this script:

game.Players.PlayerAdded:connect(function(Player)
	Player.Chatted:connect(function(Message)
		print(Player,":",Message)
		end)
end)

But I have a question will this script only fire on just the newly added player and have control on all of other players?

Example of what I mean:

Player1 joins the sever and chats it will fire the chat event

Player2 joins the server and chats it will fire the chat event,but will it still fire for Player1?

2 comments

1

It should work on all players.

0

Oh ok,thanks

1 answer

✓ Accepted answer

That will work, but you wont really be able to see the prints though, if you're in-game. If you want to create a chat log try storing all the chats in a GUI.

1 comment

0

I'm using the log inside the game to test the chat :3

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