I have a model plane anchored in the sky and I'm trying to make it point to mouse.hit, here's my script
plane = game.Workspace.PlaneModel.Engine
mouseMove = script.Parent.Parent.Parent:GetMouse()
function planeRot()
game.Workspace:waitForChild("PlaneModel")
mousePos = mouseMove.Hit.p
plane.CFrame = CFrame.new(plane.CFrame, mousePos)
end
mouseMove.Move:connect(planeRot)
The script is inside of tool, hence the parents Output: 20:09:29.637 - Players.Player1.Backpack.Plane.Script:35: bad argument #1 to 'new' (Vector3 expected, got CFrame)
