Tables sending nil in remote events?
When I send a table through a remote event, it receives nil on the server even though it isn't nil on the client.
I checked with typeof() and it says the values are strings.
01 | script.Parent.MouseButton 1 Click:Connect( function () |
03 | local inventoryModule = require(script.Parent.Parent.TableOfInventory) |
04 | inventorIy = inventoryModule.GetInventory() |
06 | for i = 1 , #inventorIy do |
08 | print (typeof(inventorIy [ i ] )) |
09 | table.insert(inventory, tostring (inventorIy [ i ] )) |
11 | local blueprint = { "M1" , "HD1" , "CS1" , "BT1" , "CPU1" } |
12 | game.ReplicatedStorage.RemoteEvents.CraftComputer:FireServer(inventory, blueprint) |