TweenPosition bugging out

Hello! I’m trying to create an ATM UI, and everything is completed backend & frontend wise, the issue is, when I go to hide the UI using TweenPosition, which I’ve used thousands of times previously with no issue like this, it bugs out completely.

Here’s the gif - https://gyazo.com/35bfcfbcee9e34a825851b722f4fe0b2

Code Snippet:

local function closeATMInterface()
	atmBackground:TweenPosition(UDim2.new(0.347, 0,1, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Exponential,1,false,function()
		atmBackground.Visible = false
	end)
end

The UI does end up at the end position, but it just teleports around before getting to it instead of tweening like its supposed to.

Any & all help is appreciated as always!

Fixed by changing the EasingStyle from Exponential to Linear, not sure why Exponential can’t be used on GUIObjects.

1 Like