Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

I made a code to make it move all the items so that they line up. Heres the code:?

Asked by 8 years ago

The only problem I have so far is the taskbar, I made a code to make it move all the items so that they line up. Heres the code:

code Taskbar.CleanUp = function()

for i,v in pairs(script.Parent.OpenApps:GetChildren()) do v.Position = UDim2.new(0,#script.Parent.OpenApps:GetChildren()*50,0,0) end end

This is meant to move all the items by 50 Offset to the left. However it does not, it moves them all to the middle.

Can anyone help?

1 answer

Log in to vote
0
Answered by 7 years ago
for i = 0,100,1 do
    script.Parent:TranslateBy(Vector3.new(i,0,0))
end
0
Just change the '0,100,1' to what ever you want it to be. SmxkePurpp 50 — 7y
Ad

Answer this question