Menu Tweening not Working {FIXED}

Hello, I am trying to make a simple menu that when you press the play button it will tween over to the left, out of view, this currently what happens when I press it.

And here is the script that should control the tweening.

local PlayBtn = script.Parent
local MainMenuBackground = script.Parent.Parent

PlayBtn.MouseButton1Click:Connect(function()
	MainMenuBackground:TweenPosition(UDim2.new(-0.5,0,0.5,0), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 1.5, false, false)
end)

I get the error of “Unable to cast value to function” and have zero ideas of what that means and or how to fix it, help would be greatly appreciated!

I fixed it by removing the false values from the tween as they were causing the function to fail because it couldn’t figure out what value they were.

How did you fix it? Im having the same problem right now. I know im reviving this topic but still.