local function UpDateGui ()
for p = 1,Number do
local Clone = script.Sample:Clone()
Clone.Name = "Stage"..p
Clone.Stage.Text = "Stage"..p
if StageSave:Get(1) <= p then
Clone.ButtonFrame.Visible = true
Clone.LockFrame.Visible = false
end
Clone.Parent = script.Parent.Frame.Frame.ScrollingFrame
ScrollingFrame.CanvasSize = UDim2.new(0,0,(0.1)*p,0)
end
end
What is “Number” defined as? What does the output say? It looks like you have some things in your script that might need fixing we don’t know of. Also I believe Get() can’t be used in scripts as said in this article.