I’m not sure if the title is the right way to describe it but I’m trying to gather what groups the player is in (already got that done) and list them out on a text label in a billboard GUI. I’m not the most experienced with how guis work but for some reason whenever I have text scaled on the newline refuses to work, aka it’s just invisible. Not sure if it’s me and my horrible code or just me not understanding how guis work. And instead of the names like it did before with just finding the first one and setting the text to the key in the dictionary, it sets it to the number now, not sure why but its probably my bad conversion (I’m re-using this code)
Edit: The text is visible once TextScaled is false.
local divisions = {
["a"] = 2522009,
["b"] = 7610920
}
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
print("the character exists now")
local regsIn = {}
print("finna check regs")
for i,v in pairs(divisions) do
if player:IsInGroup(v) then
print("Player is in division: "..i)
local n = i
print(n)
table.insert(regsIn, n)
end
end
print("time to make the tag")
local tag = tags.preset:Clone()
tag.Name = player.Name
tag.Parent = char.Head
if #regsIn >= 1 then
for i,v in pairs(regsIn) do
tag.Frame.Div.Text = tag.Frame.Div.Text.."\n"..i
end
elseif #regsIn == 0 then
tag.Frame.Reg.Text = noRegText
end