Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help troubleshoot this?

Asked by 10 years ago

What it should be doing is removing the default walkspeed, death sounds form the players Head

game.Players.PlayerAdded:connect(function(p)
    if p then
    p.CanLoadCharacterAppearance=false
    p.CharacterAdded:connect(function(c)
        if c then
            if c:FindFirstChild("Humanoid") then
                a=script.DeathScript:Clone()
                a.Parent=c.Humanoid
                a.Disabled=false

local sounds = c.Head:GetChildren()
for i = 1, #sounds do
    if sounds[i].Name==("Sound") then
sounds[i].Volume = 0
end
end
            end         


        end


    end)
end
end)

Answer this question