Creating potatoes
function SpawnPotato(position) {
-- We will finish this in the next step!
}
while true {
wait(1)
position = Vector3.new(math.random(-100,100), 100, math.random(-100,100))
SpawnPotato(position)
}function SpawnPotato(position) {
newPotato = Instance.new("Part", workspace)
newPotato.Shape = "Ball"
newPotato.Position = position
newMesh = Instance.new("SpecialMesh", newPotato)
newMesh.Scale = Vector3.new(1.5, 1.5, 1.5)
newMesh.MeshId = "rbxassetid://477543051"
newMesh.TextureId = "rbxassetid://477543054"
Debris.AddItem(newPotato, 60)
}
while true {
wait(1)
position = Vector3.new(math.random(-100,100), 100, math.random(-100,100))
SpawnPotato(position)
}Nice potatoes!

Last updated