I have tried everything, but I cannot seem to change the lookVector of a union part to the lookVector of the lower torso, upper torso, etc.
Here is the code so far:
local player = game.Players.LocalPlayer
local s = game.ReplicatedStorage.Spaceship
local ts = game:GetService("TweenService")
local p = s:Clone()
p.Parent = game.Workspace
p.Name = player.Character.Name .. "Spaceship"
local info = TweenInfo.new(
1,
Enum.EasingStyle.Quad,
Enum.EasingDirection.Out
)
local debounce = false
while true do
wait(0.1)
local bodyPart = player.Character:FindFirstChild("LowerTorso").CFrame
local goals = {CFrame = CFrame.new(bodyPart.X, 5, bodyPart.Z)}
local tween = ts:Create(p, info, goals)
tween:Play()
end
Thanks for the Help!

1 comment
the direction is backwards