Okay so, I need some help with this. I've made the code but it isn't working. It also doesn't give me an error in the output.
game.Players.PlayerAdded:Connect(function(plr)
local YSize = 25
local yPos = ((script.Parent.ScrollingFrame.TextLabel * YSize) - YSize)
local newplr = script.Parent.ScrollingFrame.TextLabel:Clone()
newplr.Parent = script.Parent.ScrollingFrame
newplr.Visible = true
newplr.Position = UDim2.new(0, 0, 0, yPos + 30)
newplr.Text = plr.Name
end)
If you got any ideas about what I'm doing wrong, please tell me. Thanks in advance.

5 comments
Usa the Lua code blocks, not inline code.
PlayerAdded should only be used on the server. if this is a server script, you need to have it located somewhere like ServerScriptService. if this is a local script, all you need to do is a fire a remote event everytime a player joins
Ok! I'll try that, and I'm sorry.
Never apologize for trying to learn. Everyones here to help.
Edit:- code block