This is suppose to give plays on spawn random weapon can you please tell me whats wrong with it?
player = part.Parent:findFirstChild("Humanoid")
function onPlayerEntered(player)
local Item = game.Lighting:FindFirstChild(math.random)
Item:clone().Parent = player.Backpack
wait(2)
print 'Working'
end
game.Players.PlayerAdded:connect(onPlayerEntered)
onPlayerEntered(game.Players:WaitForChild("Player1"))

1 comment
So i guess yes id like them to receive the same item even though they died