generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Getting bigger per person?

Previous Thread :: Next Thread 
dradra44 is not online. 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 is not online. dradra44
Joined: 11 Jul 2008
Total Posts: 1040
31 Dec 2012 02:11 AM
Bump?
Report Abuse
PuzzleCrazy is not online. PuzzleCrazy
Joined: 01 Feb 2010
Total Posts: 1245
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image