of     1   

darkemosoul
#141777787Monday, July 28, 2014 12:01 AM GMT

Im trying to make a gui that creates buttons for each of its children. But I am puzzled because im trying to figure out a way to create buttons but after a certain row the y offset moves down and x offset resets. Any ideas? The y formula works perfectly, but I have no ideas on how to make x return to one. heres part of the script: for i=1, (#units) do local z = Instance.new("TextButton",SelectionFrame)-- Dont worry about this z.Name = units[i].Name -- or this decode = Utils.DecodeJSON(units[i].Value) -- or this z.Text = decode[3] -- or this z.Size = UDim2.new(0, 32, 0, 32) -- or this newYPos = i <= 16 and 2 or math.floor(i/16)*(34) newXPos = i == 1 and 2 or 2+(34*((i/math.ceil(i/16))-(i <= 16 and 1 or 0))) print(newXPos, math.ceil(i/16), i/math.ceil(i/16),i) z.Position = UDim2.new(0, newXPos, 0, newYPos ) end
darkemosoul
#141779651Monday, July 28, 2014 12:22 AM GMT

bump !i!i!i!
darkemosoul
#141781139Monday, July 28, 2014 12:36 AM GMT

bump
darkemosoul
#141784528Monday, July 28, 2014 1:09 AM GMT

oh come on BUMP
darkemosoul
#141786418Monday, July 28, 2014 1:26 AM GMT

bumpity bump bump bumpity bump bump look at me bump
darkemosoul
#141792630Monday, July 28, 2014 2:19 AM GMT

Please help
dogwarrior24
#141793645Monday, July 28, 2014 2:29 AM GMT

lampwnage121
#141796311Monday, July 28, 2014 2:57 AM GMT

Ye PM me a link to the thread if you create one in SH. I'll help you.
lolb3
#141799650Monday, July 28, 2014 3:27 AM GMT

no honestly Sh isn't Sh it's just a bunch of unanswered threads. people.
lampwnage121
#141803066Monday, July 28, 2014 3:58 AM GMT

wat I answer around 10-100 whenever I go there depending on how I feel. A lot of them are either already answered, too vague/not enough context to be helped, or a request/service.
[rfa#hidefromsearch]
#141803764Monday, July 28, 2014 4:05 AM GMT

[rfa#hidefromsearch]
BothAngles
#141806407Monday, July 28, 2014 4:27 AM GMT

good job lockin this thread just remember mods that zak left this place because it su-cks
lampwnage121
#141808583Monday, July 28, 2014 4:47 AM GMT

"good job lockin this thread" moving* Locking is reserved for spam like yours.
Alyte
#141828458Monday, July 28, 2014 10:58 AM GMT

maaaagiiiiiiiiiiiic ~~~~~~~~
magnalite
#141834127Monday, July 28, 2014 1:32 PM GMT

for i = 1, #units do x = i % width y = (i - x) / width --do ur stuff here end You guys complain about this not being appropriate for the forum by spamming more stuff that is even more inappropriate. At least the original post was about scripting.

    of     1