The whole model faces screenshots: Front Face | Back Face | Left Face | Right Face |
Here's what this question's focused on: I have a space ship
(I made myself) that's supposed to fly at a part representing a planet. The model is made up of 2 Union parts (1 is the body of the ship, the 2nd are the accessories, guns, a window, and an engine at the back of the model) in a model are being moved using CFrame:lerp(x, y, z) and
Here's the problem: The 2 Union part's CFrame don't point at the the same rotation as each other -or what I'm saying is that the body part that is a union and the accessories on the model shift away from each other and don't stay in the same CFrame/Rotation as each other (look at the faces to see what the ship model looks like)- and point to the part (aka "Planet", if you want to be specific) in the Workspace.
Attempted code:
local model = script.Parent
local dest = CFrame.new(72, 13, -27)
local Rotation = Vector3.new(-0.51, 47.21, -0.13)
for i= 0,1,.00001 do --.00001
wait(0.01) --01
model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame:lerp(dest, i))
model.BodyParts.ShipBodyUnion.Orientation = Rotation
model.BodyParts.Accessories.Orientation = model.BodyParts.ShipBodyUnion.Orientation
model.BodyParts.Accessories.CFrame:lerp(model.BodyParts.ShipBodyUnion.CFrame, 1)
end
See the Roblox Dev Wiki article for CFrame:lerp()
I'm sorry if this isn't explained enough or it's too word-y, I can clip the less important stuff out or give more details if needed. If you're confused, please tell me what needs to be added/fixed, I know this is a very long question and maybe not so explained well I'm a new developer and I've been trying to resolve this issue for a very long time. So please try to help me here, thank you!

1 comment
Oh my gosh thank you SOOOO much for helping me! You resolved my months of struggles! Thank you thank you thank you!! :DDD