Okay, let's get this straight im new to .random. I don't understand how it works so could someone help me out here?
Output: 04:11:08.318 - 2 is not a valid member of Lighting 04:11:08.320 - Script 'Workspace.Script', Line 3 04:11:08.320 - Stack End
workspace.ChildAdded:connect(function(child)
if child:findFirstChild("Humanoid") then
for i,v in pairs(game.Lighting[math.random(1,#game.Lighting:GetChildren())]) do
v.Parent = child
end
end
end)
