Auzer
|
  |
| Joined: 24 Dec 2011 |
| Total Posts: 1590 |
|
|
| 11 Jul 2016 04:04 PM |
How do I adjust the CanvasSize automatically depending on how many TextButtons there are?
|
|
|
| Report Abuse |
|
Auzer
|
  |
| Joined: 24 Dec 2011 |
| Total Posts: 1590 |
|
|
| 11 Jul 2016 04:06 PM |
I don't want to be able to scroll too far so that the items stay at the top.
|
|
|
| Report Abuse |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 11 Jul 2016 04:18 PM |
LoadFrames = function(i,v) if i > 8 then frame.CanvasSize = UDim2.new(0,0,0,(frame.AbsoluteSize.Y/8)*i) end local box = Instance.new("Frame",frame) if game.Players.NumPlayers < 9 then box.Size = UDim2.new(0,frame.AbsoluteSize.X,0,frame.AbsoluteSize.Y/8) else box.Size = UDim2.new(0,frame.AbsoluteSize.X-frame.ScrollBarThickness,0,frame.AbsoluteSize.Y/8) end box.Position = UDim2.new(0,0,0,box.AbsoluteSize.Y*i-box.AbsoluteSize.Y)
|
|
|
| Report Abuse |
|