I already see for mispelled word
Here is the part of script is the problem:
local equippedPetData = PetDataStore:GetAsync(player.UserId.."-equippedPet")
if equippedPet then
equippedPet.Value = equippedPetData
game.ReplicatedStorage.SetEquippedPet:FireClient(player,equippedPetData)
end
end)
you do not need the player argument for the client script that receives this event call because it is automatically selected who fired it, so basically replace it with this
local equippedPetData = PetDataStore:GetAsync(player.UserId.."-equippedPet")
if equippedPet then
tostring(equippedPetData)
game.ReplicatedStorage.SetEquippedPet:FireClient(player,equippedPetData)
end
end)
can you specify what kind of data are you loading here? local equippedPetData = PetDataStore:GetAsync(player.UserId.."-equippedPet")
Is it a solid string or a table?
so as far as I know the reason that your remote event isn’t working is that tostring() function can’t convert a table into a string and it will return nil or something like Table:565x456554646