--repeat wait() until script.Parent.HumanoidRootPart

local a = 0
local x = math.cos(a)
local z = math.sin(a)
local c = script.Parent.HumanoidRootPart.Position
local count = 5

local nodes = {}


local function Spin()
	for i,n in pairs(nodes) do
		local b = a+ i*(360/#nodes)
		x = math.cos(math.rad(b))
		z = math.sin(math.rad(b))
		game:GetService("TweenService"):Create(n,TweenInfo.new(.2,Enum.EasingStyle.Quart),{Position = c + Vector3.new(x,0,z)*5}):Play()
	end
end


local function Start(count)
	for i=1,count do
		local n = Instance.new('Part',workspace)
		n.Anchored = true
		n.Size = Vector3.new(1,1,1)
		n.CanCollide = false
		n:ClearAllChildren()
		n.Parent = workspace
		table.insert(nodes,n)
	end
	local b = 360/#nodes
		c = script.Parent.Position
		a=a+15
	local spincoro = coroutine.create(Spin)
	return spincoro
end

