for i=1,10 do
local x = math.random(1,100)
local z = math.random(1,100)
local zombie = game:GetService("ReplicatedStorage")["Drooling Zombie"]:Clone()
zombie.Parent = game.Workspace
zombie:PivotTo(CFrame.new(x,0,z))
end
here's my code, when i run it the zombies are spawned together in the same place instead of random positions, how do i fix this?

1 comment
that doesn't fix my problem, that just widens the scope of where they spawn. im trying to get them to spawn seperately in random positions. i thought each time a for loop ran, a different random number would be generated?