How to make a part spawner that only spawns on one single base, but also randomly with maximum spawn?

So I was accidentally increasing the PartLimit value whoops

Try this

local PartLimit = 10
local CurrentParts = 0
local Grass = workspace["Stage 1"].grass
print("Running")

while true do
	print("Loop running")
	if CurrentParts < PartLimit then
		CurrentParts += 1
		print("Cloning a part")

		local RandomPosition = Vector3.new(math.random(-106.5, 106.5), 5, math.random(-113, 113))
		local PartClone = game.ServerStorage.toy1:Clone()
		PartClone.Parent = workspace
		PartClone.Position = RandomPosition
	end
	wait(1)
end

worked!!! but can you make it touch the ground is floating

bru wait now is spawning everywhere

My notifications broke nice

Are you getting any errors?

is floating all the part it didnt touch the ground + is spawn some place that it shouldnt

The loop works perfectly fine! thanks for the help :smiley: