How would I achieve something like this?
There would be a center and it’d place a model every X° and away from the center at a radius Y.
Thanks
How would I achieve something like this?
There would be a center and it’d place a model every X° and away from the center at a radius Y.
Thanks
You can use CFrame.Angles to form a rotated CFrame, and then you can use PivotTo on the Model to move the models to a CFrame. The math would look something like this:
local Divisions = 5 -- Divide a circle into 5 parts
for i=1,Divisions do
local Step = (i/Divisions)*math.pi*2 -- pi*2 is a full circle. i/Divisions is a fraction, so multiplying them both is a fraction of a full circle
local Model = OriginalModel:Clone()
Model:PivotTo(CFrame.Angles(0,Step,0)) -- You can add a position vector to the end of this if you want the models in a circle around a specific point
Model.Parent = game.Workspace
end