Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Custom Playerlist within a GUI help?

Asked by 6 years ago
local NumberOfTB = 1
local Denom = 0.0284237731
local lastbox = 0
game.Players.PlayerAdded:connect(function(plr)
TB = Instance.new('TextButton')
TB.Parent = ScrollingFrame
TB.Text = plr.name
TB.TextColor3(1, 1, 1)
TB.TextScaled = true
TB.TextSize = 14
TB.TextWrapped = true
TB.BackgroundTransparency = 0.30000001192093
TB.BackgroundColor3 = Color3.new(0.262745, 0.262745, 0.262745)
TB.Position = UDim2.new(0, 0,  lastbox + Denom, 0)
TB.Font = Enum.Font.SourceSans
TB.Name = NumberOfTB + 1

lastbox = lastbox + Denom
NumberOf = NumberOfTB + 1




end)

so im making a player list in a GUI and i cant seem to get them to work i want them to be selectable so i made them textbuttons

https://gyazo.com/096ce9355f29ecf55aafed2b5da7e0e8 heres a picture

0
What's not working? It looked fine chomboghai 2044 — 6y
0
@LowStrife737 it doesnt create the textbox correctly just throws the username in the very corner Reset386143 2 — 6y
0
Double Check everything, position, experiment with the scripts as you change minor things that are suspects, and i'd suggest looking at the scrolling frame, its position might affect the textbutton's position. Delude_d 112 — 6y
0
Delude ive actually tinkered with this alot like making "TB" a local variable within the function and it keeps doing the same thing but ill keep meesing with it Reset386143 2 — 6y

Answer this question