TweenPosition help

I made a Gui TweenPosition but end up like this

https://gyazo.com/5a82116d9eec91ffa9cc795b1b7abb0f

btw this my code

	ResetStandGUI.Background:TweenPosition(UDim2.new(UDim2.new(0.189,0,0.636,0), "Out", "Back", 0.5))
	ResetStandGUI.Background.AskLabel:TweenPosition(UDim2.new(UDim2.new(0.189,0,0.636,0), "Out", "Back", 0.5))
	ResetStandGUI.Background.YesButton:TweenPosition(UDim2.new(UDim2.new(0,560,0,-15), "Out", "Back", 0.5))
	ResetStandGUI.Background.NoButton:TweenPosition(UDim2.new(UDim2.new(0,566,0,123), "Out", "Back", 0.5))
1 Like

It just seems your positioning is off.

1 Like

What should i do to fix it cuz im new at this

1 Like

You can see you put a Udim2 in another Udim2.

Try this:

ResetStandGUI.Background:TweenPosition(UDim2.new(0.189,0,0.636,0), "Out", "Back", 0.5))
	ResetStandGUI.Background.AskLabel:TweenPosition(UDim2.new(0.189,0,0.636,0), "Out", "Back", 0.5))
	ResetStandGUI.Background.YesButton:TweenPosition(UDim2.new(0,560,0,-15), "Out", "Back", 0.5))
	ResetStandGUI.Background.NoButton:TweenPosition(UDim2.new(0,566,0,123), "Out", "Back", 0.5))
1 Like

Ahh I see your problem, your script should instead be:


ResetStandGUI.Background:TweenPosition(UDim2.new(0.189,0,0.636,0), "Out", "Back", 0.5)
	ResetStandGUI.Background.AskLabel:TweenPosition(UDim2.new(0.189,0,0.636,0), "Out", "Back", 0.5)
	ResetStandGUI.Background.YesButton:TweenPosition(UDim2.new(0,560,0,-15), "Out", "Back", 0.5)
	ResetStandGUI.Background.NoButton:TweenPosition(UDim2.new(0,566,0,123), "Out", "Back", 0.5)

2 Likes

Lmao idc that you copied the script I posted, you were the first one to realize it after all. (I can see it by the weird indentation since I wrote that on mobile)

2 Likes

Yeah I have the indentation bug on pc too.

1 Like