I’ve been trying to create this Inventory System with Datastores and I’ve been trying to send a RemoteEvent over to a client but in the output it gives the error “Unable to cast value to Object”
Here is my code for the serverscript, keep in mind this is not all of it:
game.Players.PlayerAdded:Connect(function()
-- ...
if InventoryItemsData ~= nil then
print(InvItemsData) -- Prints out a table
LoadInv:FireClient(InvItemsData) -- Error is here
end
end)
You should be able to pass tables just fine as arguments for remote events. How complex is this table? Does it follow the argument limitations for remote events?