Hey I need help with accessing a level in a players base, this is a reference (Ignore the parts a,b,c,d they are for the level)
When a player joins the game the level model goes into the players base level folder, and whenever I start the server up, I get the error issued in the Title
This is my code:
game.Players.PlayerAdded:Connect(function(player)
local playerName = player.Name
local base = workspace:WaitForChild(playerName.."-base")
local levelFolder = base.Level
local level = levelFolder:GetChildren()
local levelParts = level:GetChildren()
My goal is to get the levelParts table and use it for loops and such, but that last line gives the error " attempt to call a nil value"