I have a spotlight model that looks at the cursor, where the arm is only set to follow on the x-axis, and the arm should move on the x and y-axis (looking up and down).
But, I can only seem to get the head of the spotlight to move on the x-axis, and not the y-axis (not the arms holding it, the head of the spotlight).
As you can see, the head of the spotlight doesn’t look up or down, just stays on one position.
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 make it so it can look up and down, while still moving with the arm?