You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I’ve made this flying pigeon that lays explosive eggs don’t ask why.
What is the issue? It was working until I changed out the “while wait(1) do” for a while “wait(math.random(0.6, 1.2))”
now for some reason it lays like 4 eggs at a time
What solutions have you tried so far? I tried seeing if maybe the egg was the problem which it wasn’t so I am assuming it is something wrong with the script
The pigeon also tweens to random positions so that may be the problem but I doubt it is
while wait(math.random(0.6, 1.2)) do
eggClone = game.ServerStorage.egg:Clone()
eggClone.Parent = workspace
eggClone.Position = game.Workspace.Pigeon.PrimaryPart.Position
end
Wierd problem, no idea how to fix this but worst case scenario just use:
while true do
eggClone = game.ServerStorage.egg:Clone()
eggClone.Parent = workspace
eggClone.Position = game.Workspace.Pigeon.PrimaryPart.Position
task.wait(math.random(0.6, 1.2))
end