local MinSize = UDim2.new(0.992, 0,0, 0)
local MaxSize = UDim2.new(0.992, 0,7.091, 0)
script.Parent.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
print(script.Parent.Frame.Size.X.Scale)
if script.Parent.Frame.Size == MinSize then
-- stuff
It doesn't matter how much I calibrate this, my script just refuses to acknowledge that my UI is the exact size as MinSize

3 comments
Your question is too vague, can you clarify?
Essentially, the if statement won't run despite my UI matching the correct size.
if script.Parent.Frame.Size == UDim2.new(MinSize) then <- you have to compare with UDim2 since that's what value is being used.