This is a local script in StarterGui. When I run this, no error is given and the sounds don't even get copied into the humanoid.
"Sound1" and "Sound2" are sounds and children to the local script below.
player = game.Players.LocalPlayer
function Use(u)
z = script.u:Clone()
z.Parent = player.Character.Humanoid
z:Play()
end
play = true
while play do
if player.Character.Humanoid.Health == 0 then
play = false
if player.TeamColor == "Bright Blue" then
Use(Sound1)
else
Use(Sound2)
end
play = true
end
end

1 comment
Line 3, Where is z defined? You didn't define it, or Made a mistake by misplacing 'v' in place of 'u'