but it says this in orange text
Infinite yield possible on 'Players.08hulksmash.PlayerGui:WaitForChild("Pets")'
and this in blue
Script 'Players.08hulksmash.PlayerGui.PetRevealScript', Line 7
and also when you click the glass on the egg it gives an animation. since I have put this script in it hasn't worked.
help please
You did not provide us with your probably free modeled script.
Why don't you look into specific errors?
Infinite yield possible on an instance means that it could not find anything, meaning there is nothing named "Pets" inside of your Player Gui.
"and also when you click the glass on the egg it gives an animation. since I have put this script in it hasn't worked." Means nothing to us because we have no idea what your model looks like / any of the code.
Instead of free modeling stuff, try to learn exactly what's going on so you can work to improve it.