So I cant find out how to move the cframe of this object using tweening?
So I wrote this code to tween a certain object to a certain position
01 | local Part = script.Parent |
04 | local TweenService = game:GetService( "TweenService" ) |
05 | local tweenInfo = TweenInfo.new( |
08 | Enum.EasingStyle.Linear, |
09 | Enum.EasingDirection.In, |
18 | goal.Color = Color 3. fromRGB( 205 , 205 , 205 ) |
19 | goal.CFrame = workspace.MoveHere 2. CFrame |
23 | local tween = TweenService:Create(Part, tweenInfo, goal) |
so the "MoveHere2" Part is a part I made so I didn't have to specify a CFrame but it glitches out the original part when I make it move here, the reason why, I think, is that it's trying to move up and sideways at the same time, so it does not smooth and it just jumps around over the place.
For example: If I was trying to make a vent door fall open i'd need to change the orientation + the height and the z-axis position, but then when it runs the code it flops around everywhere until it gets to the position but thats not the goal, the goal is to make it smooth while going to that position