I want a random sound but the Output get me this error
ReplicatedFirst.GameManager:11: bad argument #1 to 'random' (number expected, got table)
local GameManager = {
DeathSounds = {
131138839,
131138845,
131138854,
},
}
function zombieDeathSong(z)
local sound = Instance.new('Sound', z)
sound.SoundId = 'rbxassetid://'.. math.random(GameManager.DeathSounds)
sound:Play()
end

2 comments
GameManager.DeathSounds[math.random(1, 3)]?The error explains itself