I got this error and it froze studio for a couple seconds, I thought it was an infinite loop but it’s not that. This is the error I got:
This is where it came from:
openFuncs.Stats = function()
buttonSFX:Play()
if statsDebounce == false then
if upgradesOpen == true then
openFuncs:Stats()
end
statsFrame:TweenPosition(UDim2.new(0.5, 0,0.5, 0),"Out", "Linear",0.5)
wait(0.5)
scrollRoll(statsFrame)
statsDebounce = true
else
scrollRoll(statsFrame,true)
statsDebounce = false
statsFrame:TweenPosition(UDim2.new(0.5, 0,1.5, 0),"Out", "Linear",0.5)
end
end