Udim2 value parameter not working

I have this function inside a module script that tweens the position of a frame when it’s called and it has 2 parameters, the frame and the position I want it to tween to however when i send the udim2 value the frame doesnt move in the correct spot and moves to the side a bit which is not what i want it should be moving to the location i gave it. This is what the output gives me:
image

Calling function:

FunctionModule.TweenPowerhandle(PowerHandle, UDim2.fromScale(0.156,0.467))

Function:

TweenPowerhandle = function(PowerHandle, position)
		print(position)
		PowerHandle:TweenPosition(position, Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.1, false)
	end,

You can try to send values seperately or through a table.

By the looks of it, you are running your function with a number instead of a UDim2.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.