I am creating an inventory system where when a player is loaded in, a folder is put into the player and parts/items will be placed in that folder that will later be added to the gui. Right now i have a simple remote event thats sending a clone of an object to this script and i want to know how to add the item into the inventory folder of the player
local dss = game:GetService("DataStoreService")
local ds = dss:GetDataStore("InventoryData")
game.Players.PlayerAdded:Connect(function(p)
local invFolder = Instance.new("Folder", p)
invFolder.Name = "Inventory"
end)
game.ReplicatedStorage.Folder.RemoteEvent.OnServerEvent:Connect(function(plr, item) -- put this item into plr inv folder
end)

1 comment
the item parameter is a clone of an object, not sure it that matters, i have tried different ways but it wont go into the folder.