I have this and it's not adding a folder to the player.
game.Players.PlayerAdded:connect(function(plr)
local invfolder = Instance.new("Folder")
invfolder.Name = "InventoryFolder"
invfolder.Parent = plr
print("Added Complete")
end)
I have this and it's not adding a folder to the player.
game.Players.PlayerAdded:connect(function(plr)
local invfolder = Instance.new("Folder")
invfolder.Name = "InventoryFolder"
invfolder.Parent = plr
print("Added Complete")
end)
are you sure this isnt working? it works when i put it in. Make sure you are using a script and not a local script.
Also, when you run the game, open up your Explorer window and open Players, then click your player name and see if you have the folder in there.
game.Players.PlayerAdded:Connect(function(plr)
local invfolder = Instance.new("Folder")
invfolder.Parent = plr
invfolder.Name = "InventoryFolder"
print("Added Complete")
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Im using a local script.. Should I not be??
no put this into a normal script and it will work.:)