I Wanted To Make A Part Spawner That Can Spawn More Than 2 Things With A Chance Rate I Tried To Make One But, It won't work any answers?
function kok()
local p = Instance.new("Part")
p.Position = script.Parent.Position
p.Name = "Rock"
p.Parent = script.Parent
function lol()
local s = Instance.new("Part")
s.Position = script.Parent.Position
s.Name = "Stuff"
s.Parent = script.Parent
end
end
while true do
f = math.random(1,2)
if f == 1 then
kok()
elseif f == 2 then
lol()
wait(1.5)
end
end

1 comment
It would help if you said what it displayed in the Output