local function ReloadPlayers()
local a = --< Settings
{
basicname = "Player",
content = script.Parent.Content,
template = script.Template,
padding = 25
}
local content = a.content:GetChildren()
for i = 1, #content do
if content[i].Name == a.basicname then
content[i]:Destroy()
end
end
local player = game.Players:GetChildren()
if #player > 0 then
for count = 1, #player do
local _object = a.template:Clone()
_object.Parent = a.content
_object.Name = a.basicname
_object.Position = UDim2.new(0,0,0,((count * a.padding) - a.padding))
_object.Avatar.Image = "h##################################################################################################################### if player[count].UserId == game.CreatorId then
_object.NameLabel.Text = "[OWNER] "..player[count].Name
else
_object.NameLabel.Text = player[count].Name
end
end
end
end
It is set up on key event cause when player press tab so the frame #### ### in it is always only one player loaded
|