I have a pet system where a player can have multiple of the same pet in their inventory. How do I make it to where they cannot equip the same exact pet they just equipped?
I have 2 folders inside the player. One for pets and one for equipped. My thinking is giving each pet a player gets in their inventory an Id using:
local HttpService = game:GetService("HttpService")
local IdResult = HttpService:GenerateGUID(true)
pet:SetAttribute("petId", IdResult)
The problem I am having is making this Id consistent with the same pet and everywhere it goes.
The ViewportFrame gets a pet model that is cloned out of ReplicatedStorage. So is there a simple way I can make my pet’s Id stay consistent?