As you can see in the screenshot, I placed bool values under the section for each player, I have a user and a rank text label within each frame and have all these placed in a frame that players can close/open, I tried to use bool values and check in order from 1-10 if the bool value was true or not then place the players user in the text label if that sections bool value is false, it didn't give me any errors but the code was too large and messy anyways so yeah, if anyone knows how I can go about adding the players user to the lowest open spot and updating the player list when players leave or whatever I'd appreciate it, I'm just not very good with cycling through stuff
#Custom Player List
16 messages · Page 1 of 1 (latest)
wouldnt u just put a list layout, and whenever someone joins, u like clone the frame, put it in the uilistlayout and like set the user and rank
im just stupid and made it more work for myself bc i was too lazy to constantly update the close/open frame buttons position
if i were to delete/add frames like that id also have to constantly update the buttons position and it'd take a whole other like 2 minutes to make that script
it's not even running for some reason bruh
my playeradded scripts are always doodoo i needa learn how to code better
playeradded works on server
wtf are u doing
local event = RS.Event
local leavingEvent = RS.Event2
game.Players.PlayerAdded:Connect(function(player)
event:fireAllClients(player)
end)
game.Players.PlayerRemoving:Connect(function(player)
leavingEvent:fireallclients(player)
end)
local :
local event = RS.Event
local leavingEvent = RS.Event2
event.OnClientEvent:Connect(function(player)
local newPlayer = frame:Clone()
frame.Name = player.Name
frame.PlayerName.Name = player.Name
frame.Rank = player.Rank
frame.Rank.Parent = uilistlayout
end)
leavingEvent.Onclientevent:connect(function(player)
local PlayersFrame = Frame:FindFirstChild(player.Name)
end)
u can change gui on the server
idk how
ask @barren birch
Dunno what you guys are talking about but yes, you can change the GUI of an player using a server script
Just get the player, then wait for PlayerGUI and from there is just like for a local script
!!! if you changed a frame lets say visible true on client but then you want to set it visible false on server, you might have a hard time so just change the GUIs either on client, either on server