On lines 64 and 65, LocalSound uses game.Players
instead of game:GetService("Players")
. This is non canonical and breaks on games that might rename their services for whatever reason.
-- Notify the sound dispatcher this character has left.
game.Players.LocalPlayer.CharacterRemoving:connect(function(character)
RemoveCharacterEvent:FireServer(game.Players.LocalPlayer)
end)
I’m unsure if this is leftover gametest2 stuff when I was testing or if this is on production.