local coin = game.ServerStorage.coin local n = 0 local function f () local dup = coin:Clone() dup.Parent = game.Workspace local xPosition = math.random(-70 , 70) local zPosition = math.random(-70 , 70) dup.Position = Vector3.new(xPosition, -2, zPosition)

end

while n<5 do f() n = n+1 end

so i was trying to make this work but i can't figure out how to continuously spawn the coin.

1 comment

0

I'd just set the parent to nil when you want it destroyed then set the parent to whatever it was before to add it back.