output:20:08:16.118 - Workspace.Script:24: attempt to index a nil value 20:08:16.118 - Stack Begin 20:08:16.119 - Script 'Workspace.Script', Line 24 20:08:16.120 - 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
pack.Name = player.Name.."sPack"
script.Parent.check.Value = 0
if player.Name == "Player" then
game.ServerStorage:findFirstChild(game.ServerStorage.GM, true):GetChildren():Clone().Parent = game.Lighting.player.Name.."sPack"..inventory
end
end)

1 comment
Your question is too vague; What is wrong? Was there any Output? Is this the whole script? What isn't working about it? Because, looking at it, this IS NOT the entire script, but, however, I am seeing ALLOT of errors in this small chunk of code.