My Gui Tweening Goes the Wrong Way

Hi,
I have a problem with tweening a GUI. The problem is that the tweening direction is not as I expected
For example:
Tweening-problem.gif
As you can see the gui is going to the right bottom instead of straight down.
I tried to edit the anchor point, but it wasn’t my solution.

I give you my code so you can check it if there is anything not appropriate.

gui.PlayButton.MouseButton1Click:Connect(function()
   buttonUpSound:Play()
   camera.FieldOfView = 70
   cameraLoop = false
   gui.PlayButton.AutoButtonColor = false
 gui.PlayButton:TweenPosition(UDim2.fromScale(0,1.1),"InOut","Back",3,false,whenButtonDisappear)
   playerControls:Enable()
   for i = 13,0,-0.1 do
	blur.Size = i
	wait()
end
end)
2 Likes

Set the anchor point to 0.5, 0.5 and then change UDim2.fromScale(0,1.1) to UDim2.fromScale(0.5,1.1).
That should fix your problem.

3 Likes

Yup, I set my anchor point before. I just had to edit my code as you told me. Thank you!

1 Like