This sounds like a job for... UIListLayouts https://create.roblox.com/docs/reference/engine/classes/UIListLayout
#text is overlapping when theres more than 1 person in the game
71 messages · Page 1 of 1 (latest)
i got rid of my old one since it was very far down in the scrip help
so dont worry theres no dupes
"Very far down script help". But thanks for deleting it
ohh its cause you responded to it your still following it
press unfollow
Still right next to each other
I don't-- I even thanked you for deleting it. I posted that in response to what you said
No need to call me the villian lol
Yeah-- try using UIListLayouts to space them out
^^
i dont kow how i wanted someone to explain it
reading roblox docs kinda confuse me
specificaly that one
What UIListLayouts do is automatically position any GUI objects in its range in a list
So it would look kind of like this:
Before:
After:
how do i use it?
Just take the UIListLayout instance from the plus menu and put it in the folder that contains all of the GUI objects you want to place
For your use case, I don't think you'd even have to change any of its properties and junk
I felt the same way when I learned about them
i cant see my text anymore
What's its filepath in studio?
file path of what?
that?
im so confused why i cant see it
i deleted the UI thing and its still not there
nvm i fixed it
it wasnt active for some reason
wasn't active?
nope
Like .visible was false?
huh-- the more you know
had me flipping out trying to figure out what went wrong lol
is there a way to tweek the order the ui loadout puts things in with script
i was stressing lmfao i wasnt sure either
Yeah-- you can by changeing the sortorder property
alright cool
cause im gunn add ranks just wanted to make sure
thank you so much jedi tbh i was trying to figure this out for like 4 hours before asking anyone
If you change the sort order type to layout order then change the layout order property of the GUI objects to the order you want them to appear in, you can manually set the sort
alright cool
wait jedi
What I would do if you want to filter them by ranks is to put all the players in a table, sort the table using table.sort, then systematically increase the layout order of each object
wiat nvm
alright ill keep that in mind thank you so much
Jedi
@vernal garden
one last thing not sure if yk
when someone leaves there name doesnt get removed but i have something for that on the last line
local Players = game:GetService("Players")
local name_box = script.Parent.PlayerList.Frame.names
local function createNewText(Player)
local newText = name_box:Clone()
newText.Text = Player.Name
newText.Name = Player.Name.."Frame"
newText.Position = UDim2.new(0, 5, 0, (#name_box:GetChildren() * 10))
newText.Parent = script.Parent.PlayerList.Frame.ScrollingFrame
end
local function deleteText(Player)
local TextName = Player.Name.."Frame"
local Text = name_box.Parent:FindFirstChild(TextName)
if Text then
Text:Destroy()
end
end
for _, player in ipairs(Players:GetPlayers()) do
createNewText(player)
end
Players.PlayerAdded:Connect(function(player)
createNewText(player)
end)
Players.PlayerRemoving:Connect(function(player)
deleteText(player)
end)
newText.Parent = script.Parent.PlayerList.Frame.ScrollingFrame
Your parent for the text elements is different from where you're searching for them
name_box.Parent is script.Parent.PlayerList.Frame
im aware thats too fix another issue will it not work unless its in the scrolling frame? ill read this more when i wake up its 4am for me ha
im chaneing the parnet of the clone and its looking in the scrolling frame so i dont see why that would be why