|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
| |
|
|
| 10 Jul 2015 06:32 PM |
| Nevermind, I figured it out .-. |
|
|
| Report Abuse |
|
|