I have Egg hatch but i need only 1 pet, if i get same pet again how to delete it?
✓ ANSWER ACCEPTED
How to detect if in folder are 2 items same name???
1 answer
✓ Accepted answer
It would be best to have done some research on this first, since this is not a request site. But you can do something like this
When you chose the pet, get the name of the pet:
if player.Folder:FindFirstChild(pet.Name) then
-- here, you can either decide to delete the pet already in the folder, or just not give the pet. If you wanted to delete the one in the folder:
player.Folder:FindFirstChild(pet.Name):Destroy()
end
Hope this has been of help, if so, please accept this answer :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
This is not a request site
I need script for deleting idk how to make it