How to stop model from rotating with tween

So I have a model which I wanna tween to a certain point but for some reason it keeps rotating while being tweened. I know position fixes it but if I use position then only the primary part gets tweened and body stays regardless if It’s welded, anchored or not.

local Tween = game:GetService("TweenService")
local Info = TweenInfo.new(50)
local WallMove = {CFrame = game.workspace.Goal.Point.CFrame}
Tween:Create(script.Parent.PrimaryPart, Info, WallMove):Play()
1 Like

Adjust the goal CFrame; it might just be rotated.

1 Like

It was already asked:

Look at the orientation it sits in, say it’s 0,90,0 and you want it to move 90 degrees on the Y axis
so on the line with
local WallMove = {CFrame = game.workspace.Goal.Point.CFrame}

you can change it to
local WallMove = {CFrame = game.workspace.Goal.Point.CFrame * CFrame.Angles(0,math.rad(180),0)}

And if it flips the wrong way you can change it to -180, just play around with it until you find what you like! If you need further help I’d be glad to assist :slight_smile:

3 Likes