Frame Not Tweening Correctly

Greetings! I noticed an issue, for some reason my Frame won’t tween correctly, instead it tweens to 0,0,0 rather than what I need it to. Here is a little clip of what’s going on: https://gyazo.com/6b59982823e8aeccb7cb668f914a90e9

Here is how I want it to be: image

Snippet for script:

	if isCookingIngredients.Value == true then
		print("True")
				local Tween = Cooker.BaseCooker.Meat.MeatGui.Scaler:TweenSize(
					UDim2.new({0.8, 0},{1, 0}),
					Enum.EasingDirection.Out,
					Enum.EasingStyle.Quad,
					10,
					false
					
				)
		
		local Tween = Cooker.BaseCooker.Meat1.MeatGui.Scaler:TweenSize(
			UDim2.new({0.8, 0},{1, 0}),
			Enum.EasingDirection.Out,
			Enum.EasingStyle.Quad,
			10,
			false

		)

		local Tween = Cooker.BaseCooker.Meat2.MeatGui.Scaler:TweenSize(
			UDim2.new({0.8, 0},{1, 0}),
			Enum.EasingDirection.Out,
			Enum.EasingStyle.Quad,
			10,
			false
		)
		print("Tweening")
	end

Any help is appreciated!

1 Like

Sorry, the link isn’t working, I can’t see the clip

.OH SORRY. The link now works!

Firstly try making the AnchorPoint 0.5, 0.5 to be the centre of the object, let me know how this changes things!

It still didn’t work and it changed it’s position?

It’s hard to explain what AnchorPoint does, this article goes into detail about it
https://developer.roblox.com/en-us/api-reference/property/GuiObject/AnchorPoint
The reason I said about changing it is because it may change how the Tween works

Oh, I set it to 0.5,0.5 but it still didn’t work.

Get rid of the curly brackets. It doesn’t work the same with curly brackets.

1 Like

Yes I was just gonna say that! The braces glitch the thing around.

1 Like

Wow, didn’t know that destroyed it. I always knew the curly brackets got in the way, but never knew it was this bad. Thanks!

1 Like