Im trying to check if 'Size' - a Frame on a surfaceGui - is bigger and smaller then a certain size
necessary parts of script:
local Gui = v.DataPanel.OutsideData.Border
local Power = Gui.Factor3Answer
local PowerBar = Power.Tween
local Size = PowerBar.Size
if WaterPart.WaterQuantity.Value == 1 then
local Incremement = 0.005
if Size > UDim2.new(0,0,0,0) and Size < UDim2.new(1, 0, 0, 80) then
PowerBar:TweenSize(UDim2.new(((Size + UDim2.new(Incremement, 0, 0, 0)))),"Out","Bounce",0.1, true)
end
end
it stops at line 7 saying:
attempt to compare two userdata values
