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

Help with PlayerAdded Event? [closed]

Asked by 9 years ago

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?

1
It should work on all players. ultimate055 150 — 9y
0
Oh ok,thanks kevinnight45 550 — 9y

Locked by Shawnyg, SanityMan, Perci1, and TofuBytes

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
2
Answered by 9 years ago

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.

0
I'm using the log inside the game to test the chat :3 kevinnight45 550 — 9y
Ad