How to make parts surround a player?

So what I want to achieve is to make a bunch of projectiles surround the target/player in a perfect circle.
Sorta like this:
https://gyazo.com/486109214403a90e5942b7f300b0b723

1 Like

Edited the script so now it is WAY more even now.

-- StarterCharacterScripts
local Target = script.Parent:WaitForChild("HumanoidRootPart")
local AmountOfParts = 63
local TableParts = {}
local Radius = 0

function CreateParts()
	for i = 0,AmountOfParts,1 do
		local Part = Instance.new("Part")
		Part.Anchored = true
		Part.CanCollide = false
		Part.Size = Vector3.new(1,1,1)
		Part.Parent = workspace
		table.insert(TableParts,Part)
	end
end

CreateParts()

for i, v in pairs(TableParts) do
	task.wait()
	local NewPos = Target.Position + Vector3.new((math.cos(Radius) + math.cos(Radius) * 5),(math.sin(Radius) + math.sin(Radius) * 5),0)
	v.Position = NewPos
	Radius += 0.1
end
1 Like