- What do you want to achieve? Keep it simple and clear!
for my output that names a (pet) after the egg hatches to link with its PetImage stored in Player-Gui
so when the egg animation stops it shows the petImage just earned from output.
- What is the issue? Include screenshots / videos if possible!
egg animation stops and nothing appears.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
tried doing, with no success, I don’t see PetImages line…
local petNumber = math.random(1,50)
local petFound = false
local pet = nil
while petFound == false do
for i, v in pairs(petModule.Pets) do
if math.random(1,v) == petNumber then
petFound = true
pet = i
end
end
end