local PartLimit = 10
local CurrentParts = 0
print(“Running”)
while true do
print(“Loop running”)
if CurrentParts < PartLimit then
PartLimit += 1
print(“Cloning a part”)
local RandomPosition = Vector3.new(math.random(-25, 25), 3, math.random(-25, 25))
local PartClone = game.ServerStorage.toy1:Clone()
PartClone.Parent = workspace
PartClone.Position = workspace[“Stage 1”].grass.Position + RandomPosition
end
wait(1)
end
The problem is every time I dont know where the part didnt spawn in the correct position, Vector3.new(math.random(-25, 25), 3, math.random(-25, 25)) this im not sure where to spawn.