I'm trying to make a smooth door open animation but I have never used tween before. I looked at a few tutorials and threw this script together, but the part does not want to move.

script.Parent.mouseClick:connect(function()
	local TweenService = game:GetService("TweenService")
	local Part = script.Parent.Parent.Parent.Part

	local Info = TweenInfo.new(
		1,

		Enum.EasingStyle.Bounce,

		Enum.EasingDirection.Out,

		1,
		
		true,
		
		0
		
		)
		
		local Goals = 
		
		{
				Orientation = Vector3.new(0,-90,0);
				Position = Vector3.new(-253.099, 5.5, 88.249);
			}
		
		local Tween = TweenService:Create(Part,Info,Goals)
		Tween:Play()
end)?
 

1 comment

0

don't use tweenservice for doors, use cframe