Stageo = {1, 2, 3, 4, 5}

local ClickSound = script.Parent.Parent.ClickSound
local Stage = script.Parent.Parent.Stage
local Button = script.Parent

Click = function()
script.Parent.Parent.ClickSound:Play()
  local Stagez = 1
  Stage.Value = 1
  for i = 1, #Stageo + 1 do
    Stagez = Stageo[i + 1]
      Stage.Value = Stageo[i + 1]
      break
    end
end
script.Parent.MouseButton1Click:connect(Click)

Im not sure what i did wrong but i have tried changing the for part on many occasions still wont work i hope someone can solve this. Thanks