I am making a attack for a boss, where his staff spins around him.
wait(1)
local staffmodel= script.Parent.Parent
local speed = 0.00001
local distanceFromCenter = 20
local center = Vector3.new(script.Parent.Parent.Parent.Pharo.Stand.Position) -- this sends it to 0,0,0 and i have no clue why
local function movearoundboss()
for i = 0, 360 do
task.wait(speed)
staffmodel:PivotTo(CFrame.new(center) * CFrame.Angles(0,math.rad(i),0) * CFrame.new(0,0,distanceFromCenter))
staffmodel:PivotTo(monster:GetPivot() * CFrame.Angles(0,math.rad(-90),0))
end
end
while wait(0.5) do
movearoundboss()
end
when I try and change it so the center is the boss, it sends it to 0,0,0