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

How to I get this to go down a scrolling frame?

Asked by 4 years ago
Edited 4 years ago

What the script is suppose to do.

It's suppose to print the frame twice across which it does but it is then suppose to continue printing the stuff down by 5 then repeat that exact same cycle until it goes through the entire list. So like this. Value1 Value2 then it goes down 5 then does Value3 Value4 It continues until it goes through the entire list.

What the script currently does.

It prints the audio's like it should but it doesn't go down like it's suppose to.

--Made By MillerrIAm
--------------Variables------------
Music = game.Workspace.MusicFolder:GetChildren()
SFrame = script.Parent.ScrollingFrame
Value = 0
-------------Main Script------------
while script.Disabled == false do
    for i,v in pairs(Music) do
        if Value == 0 then
            frame = SFrame.MusicFrame:Clone()
            frame.Visible = true
            frame.Parent = SFrame
            frame.Position = frame.Position + UDim2.new(0,0,0,0)
            frame.Label.Text = v.Name
            wait(1)
            Value = 1
        elseif Value == 1 then
            frame = SFrame.MusicFrame:Clone()
            frame.Visible = true
            frame.Parent = SFrame
            frame.Position = frame.Position + UDim2.new(0.5,0,0,0)
            frame.Label.Text = v.Name
            wait(1)
        end
    end
end
0
To anyone who looks and helps, thank you! Just2Terrify 566 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Alright so, although no one on the site helped me... I figured I should help everyone else. My main issue is I didn't add a offset value that repeats itself inside the script so it just repeated the script over and over again.

Ad

Answer this question