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
 

Gui Repositioning

Previous Thread :: Next Thread 
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
10 Jul 2015 05:02 PM
Im pretty bad at this, but I came up with this code:

script.Parent.ChildRemoved:connect(function(c)
if c:IsA("Frame") then
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("Frame") then
v.Position = v.Position - UDim2.new(0,0,.05,0)
end
end
end
end)

whenever someone buys something, the rest of the items below it will move up, problem is, it only works if they buy it in order (Meaning, they have to buy the first item for the rest to move up correctly, if they dont, the items above it go to negative)

Any help on fixing that?
Report Abuse
baldo46 is not online. baldo46
Joined: 28 Jul 2008
Total Posts: 1254
10 Jul 2015 05:07 PM
You should do something like having them positioned in relation to one another instead of inferring where they should be on their own.
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
10 Jul 2015 05:15 PM
How would I go upon doing that?

I was thinking to name each of them in number order, 1 being the highest one, that way I have an order, but what would I do now?
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
10 Jul 2015 05:21 PM
bmp
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
10 Jul 2015 05:32 PM
b0mp it

halp pls
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
10 Jul 2015 06:11 PM
no help?
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
10 Jul 2015 06:32 PM
Nevermind, I figured it out .-.
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