I'm trying to make a join log GUI and what I have works, however it won't update for old Players. IE
Player 1 joins and it says that player1 joined on his GUI Player 2 joins and it says that Player1 and 2 have both joined.
However for Player1 it won't show that player2 joined.
My current Script is a normal script in ScriptStorage.
My code:
game.Players.ChildAdded:Connect(function(plr)
local frame = game.StarterGui.e.ScrollingFrame
local textLabel = Instance.new("TextLabel")
textLabel.Parent = frame
textLabel.Position = UDim2.new(0, 25, 0, 50)
textLabel.Size = UDim2.new(0, 150, 0, 50)
textLabel.BackgroundColor3 = BrickColor.White().Color
textLabel.Text = ""..plr.Name.." has joined"
end)
Any ideas on how to fix it?

4 comments
You need to use game.Players.PlayerAdded and you can't edit GUI with StarterGui.
Having it in a PlayerGUi didn't work
you need to change with PlayerGUI with Client side.
What you can do is detect if its you on the server and then the server gives you a gui which can log other players who join you, now you just need to make sure to do this within a scrollingframe or something