game.Players.PlayerAdded:Connect(function(plr)
local PCs = Instance.new("Folder",plr)
PCs.Name = "PCs"
end)
function createPC()
local PC = Instance.new("IntValue", game.Players.LocalPlayer:WaitForChild("PCs"))
PC.Name = tostring(game.Players.LocalPlayer.PCs:GetChildren() + 1)
end
createPC()
Ther error happnes on line 7 "local PC = Instan..." Here is the error: 15:07:00.232 - ServerScriptService.Script:7: attempt to index nil with 'WaitForChild'
