Tweening Frame goes to the left

Not sure to understand why the frame does tween the size to the left direction when I want it to tween on the right direction

Also there’s a little point that we see on the left in which it shouldn’t be visible only the info button of tutorial

Code close button :

local CloseTutorial = script.Parent
local InfoOpen = script.Parent.Parent.Parent["INFO OPEN"]
local InfoClosed = script.Parent.Parent.Parent["INFO CLOSE"]
local MainFrame = script.Parent.Parent.Parent


CloseTutorial.MouseButton1Click:Connect(function()
	script.Parent.Parent.Parent.ScrollingFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)

	script.Parent.Parent.Parent.ScrollingFrame["1"].Visible = false
	script.Parent.Parent.Parent.ScrollingFrame["1.5"].Visible = false

	script.Parent.Parent.Parent.ScrollingFrame["1.2"].Visible = false

	script.Parent.Parent.Parent.ScrollingFrame["1.3"].Visible = false
	script.Parent.Parent.Parent.ScrollingFrame["1.4"].Visible = false

	InfoOpen.Visible = true
	InfoClosed.Visible = false
	
	MainFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)
end)

Code open button :

local CloseTutorial = script.Parent
local InfoOpen = script.Parent.Parent.Parent["INFO OPEN"]
local InfoClosed = script.Parent.Parent.Parent["INFO CLOSE"]
local MainFrame = script.Parent.Parent.Parent

CloseTutorial.MouseButton1Click:Connect(function()
	script.Parent.Parent.Parent.ScrollingFrame:TweenSize(UDim2.new(1, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)

	script.Parent.Parent.Parent.ScrollingFrame["1"].Visible = true
	script.Parent.Parent.Parent.ScrollingFrame["1.5"].Visible = true

	script.Parent.Parent.Parent.ScrollingFrame["1.2"].Visible = true

	script.Parent.Parent.Parent.ScrollingFrame["1.3"].Visible = true
	script.Parent.Parent.Parent.ScrollingFrame["1.4"].Visible = true
	
	InfoOpen.Visible = false
	InfoClosed.Visible = true
	
	MainFrame:TweenSize(UDim2.new(0, 175, 0, 175), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.2)



end)

1 Like

Maybe show the code for your tween so that we can try and fix it?
Edit thank you.

1 Like
MainFrame:TweenSize(UDim2.new(0, 175, 0, 175), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.2)

On this line. Replicate it with this code:

MainFrame:TweenSize(UDim2.new(0, -175, 0, 175), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.2)

Tell me what happens now.

1 Like

Yeah hum

1 Like
MainFrame:TweenSize(UDim2.new(0, -175, 0, -175), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.2)

How about this?

1 Like

1 Like

Hm, that’s confusing. Oh well change your code back to normal then. Hopefully someone smart comes here. Good luck.

1 Like

One more try.

MainFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)
MainFrame:TweenSize(-UDim2.new(0, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2)
1 Like

Still the same issue that remains

1 Like

Any conflicts issues regarding AnchorPoints?

2 Likes

Anchor point of the main container are at 0, 0

Try setting the container’s Anchor Point to 1, 0

It looks like this

1 Like

What is it’s current position?

This text will be blurred

1 Like

I changed the Anchor point of main container to 1 but put it back to 0,0 it seems like we see the dots point on closing the tutorial since the info button is in the main container frame that’s why it needs to display the point to have space to fill in the info button

1 Like

ScreenShot_2024-05-26_13_21_40

1 Like

I had a stroke while reading that, can you explain it better?

1 Like

I mean the dot you see while closing the tutorial from my understanding of why we are seeing it it seems like it’s because it has to display the button in which the player can click to make the tutorial visible again so the dot point indicates that there’s still element visible which otherwise I tested yesterday and if I would put the main container invisible then the close and info button would be as well so my theory is that the info button plays a role in the small dots

What do you mean by “dots”?

This text will be blurred