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

4 comments
What's not working? It looked fine
@LowStrife737 it doesnt create the textbox correctly just throws the username in the very corner
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 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