I have a spotlight that follows the cursor, where the arm is only set on the x-axis, and the arm should move on the x and y-axis.
But, I can only seem to get the head of the spotlight (not the arms holding it, the head of the spotlight).
It only goes on the x-axis, but not the y-axis.
Mouse.Move:Connect(function()
local MousePosition = Mouse.Hit.Position
local direction = Vector3.new(MousePosition.X,Head.WorldPivot.Position.Y,MousePosition.Z)
Head:PivotTo(CFrame.new(Head.WorldPivot.Position, direction))
end)
Any way to fix this?