20:17:29.205 - Workspace.Script:24: attempt to index a nil value 20:17:29.206 - Stack Begin 20:17:29.207 - Script 'Workspace.Script', Line 24 20:17:29.207 - Stack End
function setMessageVisibility(objects, visible)
for _, object in pairs(objects) do
object.Visible = visible
end
end
game.Players.PlayerAdded:connect(function(player)
local pack = Instance.new("Model",game.Lighting)
local holder = game.Lighting.holder
holder:clone().Parent = pack
local clothes = game.Lighting.clothes
clothes:clone().Parent = pack
local faces = game.Lighting.faces
faces:clone().Parent = pack
local inventory = game.Lighting.inventory
inventory:clone().Parent = pack
if player.Name == "Player" then
game.ServerStorage:findFirstChild(game.ServerStorage.GM, true):GetChildren():Clone().Parent = game.Lighting.player.Name.."sPack"..inventory
end
pack.Name = player.Name.."sPack"
script.Parent.check.Value = 0
end)
