Eneinsosnbdobwoownonwhwhdohosbwhoehodbdboeob
You should rename the TextLabel to something else (probably PlayerName). Maybe that’s why it’s not working
![]()
The frame.Name.Text is probably the issue. frame.Name is the frame’s Name property, so my best guess is that this script is basically doing frameName.Text.
Try doing frame:WaitForChild("Name") instead
Which one? There are two Textlabels.
The one that shows the player’s name (its in Template).
doesn’t work still, ill try print something to see if its working
What’s the current name of the TextLabel right now?
which line in that screenshot, 1 or 2?
PlayerName is the name of the TextLabel
2⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Now the textlabel itself doesnt appear
If you renamed the label to PlayerName, do frame.PlayerName.Text = player.Name instead.
That won’t work, do v:Destroy() instead.
your script has alot of errors just by viewing it in the script editor
Try using this script:
I think it will work.
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false)
local function temp (player)
local frame = game.ReplicatedStorage.Template:Clone()
frame.Parent = script.Parent.Frame.ScrollingFrame
frame.Name = player.Name
for i,v in pairs(frame:GetChildren()) do
if v:IsA("TextLabel") then
v.Text = player.Name
end
break
end
frame.Visible = true
end
game.Players.PlayerAdded:Connect(function(plr)
temp(plr)
end)
for _,plr in pairs(game.Players:GetChildren()) do
temp(plr)
end
game.Players.PlayerRemoving:Connect(function(plr)
for i,v in pairs(script.Parent.Frame.ScrollingFrame:GetChildren()) do
if v.Name and plr.Name then
v:Destroy()
end
end
end)
still broken, the default leaderboard gui shows up however thats easily fixable, but the textlabel disappeared in terms of the gui
Thanks, it works now! I’ll see what you did here.
Instead of ‘=’ it should be ‘==’ because it is a if statement.