Problem with subtraction of UI.Position.Y

Issue

Clone.Position = UDim2.new(0.026, 0, player.PlayerGui.notifications:FindFirstChild("TextButton").Position.Scale.Y -91, 0, 

the textbutton position: 0.026, 0,0.874, 0,

Result:
-90.126338303089

but instead of that, i wanted the Y scale to be 0.874 subtracted by 91 (0.783)

how do I subtract the number after the 0. ?

Try doing:

Clone.Position = UDim2.new(0.026, 0, player.PlayerGui.notifications:FindFirstChild("TextButton").Position.Scale.Y, -91)

If you still want it to be scale still not offset just do -91/absoluteSize.Y

1 Like