Can I send a table with a set metatable through a RemoteEvent?

Is it possible to send a table that has a metatable attached to it through a RemoteEvent and it will still function like the same metatable before sending it through?

Example:
server:

local event = rs.someEvent
local metaTable = exampleTable

event.FireAllClients(metaTable) -- sorry if its not the correct syntax its just an example

client:

local event = rs.someEvent
event.OnServerEvent:Connect(function(table)
         table:metaTablefunction()
end)

will it work?

Dont think it would
Even if it did, functions can’t get serialized so you wouldn’t be able to do anything with it eitherway

1 Like

thank you for clearing this out for me and saving me precious time actually testing if it would work :+1:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.