Why is my remote event not firing on the client?

I am attempting to simply make a pet system that fires all the clients but for some reason it is not registering at all on the client.

here is the code on the server

local petValue = player.leaderstats.Pets:FindFirstChild(petId)
    if petValue then 
        Events.EquipPet:FireAllClients(HttpService:JSONDecode(petValue.Value))
        return true
    else
        print("not finding pet")
        return false
    end
end

here is the client code


local Events = game:GetService("ReplicatedStorage").Remotes.Events.Pets
local Functions = game:GetService("ReplicatedStorage").Remotes.Functions.Pets

Events.EquipPet.OnClientEvent:Connect(function(petData)
    print("fired")
    for k,v in ipairs(petData) do
        print(k)
        print(V)
    end
end)

I get no errors and it is not printing “not finding pet” so it is getting to the fire all clients code. The client however does not print anything.

SOLVED: i forgot to require the module that handled the pets :man_facepalming:

1 Like