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 » Scripters
Home Search
 

Equation for spacing between scrollingframe children

Previous Thread :: Next Thread 
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
15 Nov 2015 03:50 AM
-- Currently I have this, which adds frames to the scrollingframe parent, but there is no spacing. I tried multiple times to give it a spacing of UDim2.new(0, 0, 0.025) between the frame children, but the attempts were unsuccessful. Can you guys help?



local function FurnitureUpdated(NewFurniture)
Furniture = NewFurniture
Gui.HouseFrame:ClearAllChildren()
local Current = 0
Gui.HouseFrame.CanvasSize = UDim2.new(0, 0, 0.30*#Furniture, 0)
local Unit = 0.30/(0.30*#Furniture)
for _, OwnedFurniture in next, Furniture do
if OwnedFurniture then
local FurniturePiece = CloneFurniture:clone()
FurniturePiece.Name = OwnedFurniture
FurniturePiece.Label.Text = "Furniture Piece : "..OwnedFurniture
FurniturePiece.Size = UDim2.new(1, -14, Unit, 0)
FurniturePiece.Position = UDim2.new(0, 0, Current*Unit, 0)
FurniturePiece.Visible = true
FurniturePiece.Parent = Gui.HouseFrame
end
Current = Current + 1
end
end
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
15 Nov 2015 04:05 AM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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