So basically, there's not much my code has to offer here. Hopefully it provides enough of a foundation for someone to provide a mathematically correct explanation explaining what i could use to make an algorithm that generates a sphere. I know it has to be in the for loop statement, making the "radius" variable interfere with the max integer in the for loop (360).
local radius = 10 local spawn = CFrame.new(0,10,0) for i = 1,360 do local part = modules.makepart() part.CFrame = spawn * CFrame.Angles(0,math.rad(i),math.rad(i)*radius) * CFrame.new(radius,0,0) print(i) wait() end