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

Huge gap within Scrolling Frame how can I fix it?

Asked by 10 years ago

Ok,I have this huge gap within the position of 0,0,0 inside the scrolling frame.The problems is that I can't spawn anything within the gap because I multiplied every text label position by 100.

s = Instance.new("ScrollingFrame",script.Parent)--Makes the ScrollingFrame
s.Position = UDim2.new(0,50,0,30)
s.Size = UDim2.new(0,700,0,540)
s.CanvasSize = UDim2.new(0,0,6,6)
s.ScrollBarThickness = 20
names = {"0","1","2","3","4","5","6" }--The names
for i,v in pairs (names) do
print(v)
h = Instance.new("TextLabel",s)--Puts it all in the ScrollingFrame
h. Text = v
h.Name = v
h.Size = UDim2.new(0,100,0,100)
wait(1)
h.Position = UDim2.new(0, 0, 0, 100*i)--For each name move up one
end

1 answer

Log in to vote
1
Answered by
Azarth 3141 Moderation Voter Community Moderator
10 years ago

I don't know if I understand what you're saying.

s = Instance.new("ScrollingFrame",script.Parent)--Makes the ScrollingFrame
s.Position = UDim2.new(0,50,0,30)
s.Size = UDim2.new(0,700,0,540)
s.CanvasSize = UDim2.new(0,0,6,6)
s.ScrollBarThickness = 20
names = {"0","1","2","3","4","5","6" }--The names
for i,v in ipairs (names) do
    print(v)
    h = Instance.new("TextLabel",s)--Puts it all in the ScrollingFrame
    h.Text = v
    h.Name = v
    h.Size = UDim2.new(0,100,0,100)
    h.Position = UDim2.new(0, 0, 0, (i*100)-100)--For each name move up one
end


0
Yay,but how did you fix it? kevinnight45 550 — 10y
Ad

Answer this question