Im trying to make a game that plays a sound everytime you Kill somewone How Would i do this?
game:GetService('Players').PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() local s = Instance.new("Sound", player) s.SoundId = "" --Sound ID here s.Volume = 0.5 --Sound Volume, 0 to 1 s.Pitch = 1 --Sound Pitch s:play() wait(5) s:remove() end) end) end)