If I had an NPC how could I use `:Move()`

to make it spin a 360 circle. Sorry for the short post

You can use math.cos(n) and math.sin(n), where n is the angle in radians, to get the X and Z coordinates of the circle, then multiply them by the radius you need. You can then add this as an offset to where you want the center of the circle to be, and use :Move() using those coordinates while increasing the value of n each time.

Could you dumb that down for me, im not great when it comes to math.

My apologies, I got confused with :Move() and :MoveTo().

For :Move(), it’s actually a lot simpler. You won’t need an offset or a radius because you’re just dealing with the direction. I’ll write a sample code and explain it afterwards.

```
local rs = game:GetService("RunService")
local n = 0
local rate = 1
rs.Heartbeat:Connect(function()
n = n + math.rad(rate)
local dir = Vector3.new(math.cos(n),0,math.sin(n))
--set the move direction using Humanoid:Move(dir) here
end)
```

This code is wrapped inside of a .Heartbeat function so that the :Move() is updated roughly 60 times per second. If you want, you can change this to make the update less frequent, but it’s up to you.

n is added to each 1/60 of a second. I used math.rad() to convert the rate from radians to degrees because most people (including myself) are better with degrees. The rate is currently 1, so decreasing the rate would make the NPC spin slower, and increasing it would make NPC spin faster. Lastly, the direction is set with a Vector3, so math.cos() gets the X-component of the direction and math.sin() gets the Y-component, but since you want the circle to be around the Y-axis, we put this in the Z coordinate instead.

Hope this helped to clear things up. Feel free to ask questions if you still need help.