I am trying to spawn parts with a magnitude of 50 from a part, the center. How do I go about doing this??
main = workspace.Enemy
tower = workspace.Tower
spawnradius = 50
while true do
part = main:Clone()
part.BrickColor = BrickColor.Random()
mag = (part.Position - tower.Position).magnitude
if mag <50 then
-- I have no idea what to do.
end
end
I've thought about trying to understand how Roblox calculates magnitude but it has to do with something on absolute values. But being a 13-year-old, I have no idea how to find that. Any help would be appreciated. Solutions don't have to only rely on magnitudes.

2 comments
This might prove useful in just understanding magnitude: https://forum.scriptinghelpers.org/topic/763/how-magnitude-works-in-layman-s-terms
Thanks but it's shows errors. Lol.