So, right now my goal is to create a tool that makes bricks form a circle around my character when I click and got this far
local sp = script.Parent
local PartsToGenerate = 10
function BlastAttack()
local Part = Instance.new("Part")
Part.Anchored = true
for Gen = 1, PartsToGenerate do
Part.Parent = workspace
Part.CFrame = CFrame.Angles (0, math.rad(360/PartsToGenerate*Gen), 0)
wait()
end
end
while wait(1)do
BlastAttack()
end
My issue is the script rotating the generated parts instead of creating a new part for each 'Rotation Frame' I guess. If that makes sense.
I'm sorry if it's an easy fix Dx I'm just stupid.
