dradra44
|
  |
| Joined: 11 Jul 2008 |
| Total Posts: 1040 |
|
|
| 31 Dec 2012 01:56 AM |
function getPlayers() local Player = game.Players:GetChildren() for i = 1, #Player do script.Parent:TweenSize(UDim2.new(0, 210, 0, 40)) script.Parent.Size = UDim2.new(0, 210, 0, (i - 1) * 35) --Doesn't resize properly Button = script.TextButton:Clone() Button.Parent = script.Parent Button.Text = Player[i].Name Button.Position = UDim2.new(0, 0, 0, (i - 1) * 30) end end
getPlayers()
----------------------------------
The script works fine, but the one part that increases the frames size by 35 each person/button that is inserted doesnt work. |
|
|
| Report Abuse |
|
dradra44
|
  |
| Joined: 11 Jul 2008 |
| Total Posts: 1040 |
|
| |
|
| 31 Dec 2012 02:14 AM |
| Well, one thing to note is that when i=1, (i-1)=0. This means that (i-1)*35=0. |
|
|
| Report Abuse |
|
dradra44
|
  |
| Joined: 11 Jul 2008 |
| Total Posts: 1040 |
|
|
| 31 Dec 2012 02:17 AM |
| I know, the first person will have no effect, which is what I want, but everyone else should. |
|
|
| Report Abuse |
|