Ui tweening error Unable to cast string to token

So I am making a ui that makes it so whenever you touch a part it tweens but it just gives me the error “Unable to cast string to token” whenever I touch the part here is the script:

 local Play = script.Parent

game.Workspace.Part.Touched:Connect(function()
	Play:TweenPosition(
		UDim2.new(0.188, 0,0.262, 0),
		"out",
		"Elastic",
		2,
		false
	)
end)
1 Like

“out” should be capitalized to “Out”… not sure this is the only issue though, but try first.

1 Like

Pretty sure easing directions have to be capitalized as well.