- What do you want to achieve? Keep it simple and clear!
I want to create a playerlist for my ban system. I thought it worked, but for some reason, it doesn’t.
- What is the issue? Include screenshots / videos if possible!
I’m not even entirely sure but when i go to make a local server with anything above 1 player, it does
add to the player list but then your player info just doesnt exist. I thought maybe this had to do with all players joining at the same time, but even that raises an issue that i don’t want even if it might rarely happen.
local scroll = script.Parent
local rss = game:GetService("ReplicatedStorage")
local placeholder = rss.GUI.Placeholder
local function updatePlayers()
local playerFrame = placeholder:Clone()
for i, child in pairs(scroll:GetChildren()) do
if child:IsA("ImageButton") then
child:Destroy()
end
end
for i, plr in pairs(game.Players:GetChildren()) do
local img = game.Players:GetUserThumbnailAsync(plr.UserId,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size420x420)
playerFrame.displaylabel.Text = plr.DisplayName
playerFrame.userlabel.Text = "@"..plr.Name
playerFrame.icon.Image = img
playerFrame.Name = plr.Name
playerFrame.Parent = scroll
end
end
updatePlayers()
game.Players.PlayerAdded:Connect(updatePlayers)
game.Players.PlayerRemoving:Connect(updatePlayers)
On 2 player server:
Player 1:
(it should be player 2 and player 1, but its just player 2)
Player 2:
(it should be player 1 and player 2, but its just player 1)
Edit: I ALWAYS FORGET TO SAY THIS, but there is no errors!
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
The only ones with similar issues/code didn’t have my issues.