So basically, in a nutshell, I'm attempting to sort an inventory system by putting multiple tables of values into other tables, however I am stumped at how i can achieve this.
local events = game.ReplicatedStorage.Inventory
local playerInventories = {
}
events.PickingUp.OnServerEvent:Connect(function(p,mouse)
if mouse.target:FindFirstChild("PickUpValue") ~= nil and (p.Character.UpperTorso.position-mouse.hit.p).magnitude <= 10 then
if playerInventories.p == nil then
local p = {}
table.insert(playerInventories,p{})
end
end
end)
EDIT: Thanks for any help

1 comment
RemoteFunctions communicating to a server give the player name automatically, which i defined as p in the parameters.