game.Players.PlayerAdded:connect(function(player) local playerLabel = Instance.new("TextLabel") playerLabel.Text = player.Name playerLabel.Text.FontSize = "Size14" playerLabel.Text.Font = "Legacy" playerLabel.Parent = script.Parent end)
I'm not worry about position yet, because I'm pretty sure I already know how to do that, but for some reason when a player joins it won't add a slot for their name?
In the comments you said that you were using a Local Script. You should be, but when using a Local Script the Player Added event is completely unnecessary unless you're trying to detect new players joining. The event will not fire when the local player joins however, and this is probably your problem.
--Local Script local player = game.Players.LocalPlayer local playerLabel = Instance.new("TextLabel") playerLabel.Text = player.Name playerLabel.Text.FontSize = "Size14" playerLabel.Text.Font = "Legacy" playerLabel.Parent = script.Parent
Let me know if that works for you.
Good Luck!
put the following code in a script in the serverscriptservice:
function playeradded(player)
local leaderstats = Instance.new("Model") leaderstats.Name = "leaderstats" leaderstats.Parent = player local wins = Instance.new("IntValue") wins.Name = "Wins" wins.Parent = leaderstats
game.Players.PlayerAdded:connect(playeradded)
*PS - if you want to add more columns to the leaderboard just copy the second block of code and change wins to whatever you want