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

Roblox Character sounds changes? How do I change the walking etc.

Asked by 5 years ago

Hi, I’ve been trying to make a game for a while. I want to change the walking sound. Many posts I see are outdated, or I just can’t find what they are looking for. Can someone explain to me how to change, edit, and remove the sounds a player emits or makes. Thank you.

1 answer

Log in to vote
0
Answered by
Zypsoh 25
5 years ago

Hi dare Extreme, i maybe have a solution for you.

So first you are going to create a script inside StarterCharacterScripts called SpreadSoun Second you are creating a script inside the SpreadSound called SoundTouch and go to his properties and check disabled Third you are going to create sounds inside SoundTouch script and renember it Example: Grass footsteps i rename it Grass. Last you are going to write the following scripts.

SpreadSound Script

if not script.Parent:FindFirstChildWhichIsA("Humanoid") then
    script.Parent = game.StarterPlayer.StarterCharacterScripts
    return
end
local C = script.Parent:GetChildren()
for i = 1,#C do
    if (C[i]:IsA("Part") or C[i]:IsA("UnionOperation") or C[i]:IsA("MeshPart")) and C[i].Name ~= "HumanoidRootPart" then
        local Copy = script.SoundTouch:Clone()
        Copy.Parent = C[i]
        Copy.Disabled = false
    end
end
wait(9)
script:Destroy()

SoundTouch

if script:FindFirstChildOfClass("Sound") then
    script.Concrete.Parent = script.Parent
    script.Metal.Parent = script.Parent
    script.Ice.Parent = script.Parent
    script.Foil.Parent = script.Parent
    script.Granite.Parent = script.Parent
    script.Grass.Parent = script.Parent
    script.Marble.Parent = script.Parent
    script.Plastic.Parent = script.Parent
    script.Sand.Parent = script.Parent
    script.Wood.Parent = script.Parent
    script.Pebble.Parent = script.Parent
    script.Neon.Parent = script.Parent
    script.Glass.Parent = script.Parent
end
function Step(part)
    if part == nil then return end
    if part.CanCollide == false then return end
    if part.Material == Enum.Material.Concrete or part.Material == Enum.Material.Slate or part.Material == Enum.Material.Brick or part.Material == Enum.Material.Cobblestone or part.Material == Enum.Material.Plastic or part.Material == Enum.Material.SmoothPlastic then
        script.Parent.Concrete:Play()
    elseif part.Material == Enum.Material.DiamondPlate or part.Material == Enum.Material.CorrodedMetal or part.Material == Enum.Material.Metal then
        script.Parent.Metal:Play()
    elseif part.Material == Enum.Material.Ice then
        script.Parent.Ice:Play()
    elseif part.Material == Enum.Material.Foil then
        script.Parent.Foil:Play()
    elseif part.Material == Enum.Material.Granite then
        script.Parent.Granite.TimePosition = 0.175
        script.Parent.Granite:Play()
    elseif part.Material == Enum.Material.Grass or part.Material == Enum.Material.Fabric then
        script.Parent.Grass:Play()
    elseif part.Material == Enum.Material.Marble then
        script.Parent.Marble.TimePosition = 0.14
        script.Parent.Marble:Play()
    elseif part.Material == Enum.Material.Plastic or part.Material == Enum.Material.SmoothPlastic then
        script.Parent.Plastic:Play()
    elseif part.Material == Enum.Material.Sand then
        script.Parent.Sand.TimePosition = 0.2
        script.Parent.Sand:Play()
    elseif part.Material == Enum.Material.Wood or part.Material == Enum.Material.WoodPlanks then
        script.Parent.Wood:Play()
    elseif part.Material == Enum.Material.Pebble then
        script.Parent.Pebble:Play()
    elseif part.Material == Enum.Material.Neon then
        script.Parent.Neon:Play()
    elseif part.Material == Enum.Material.Glass then
        script.Parent.Glass:Play()
    end
    local L = script.Parent
    if L == nil then return end
    if L.Material == Enum.Material.Concrete or L.Material == Enum.Material.Slate or L.Material == Enum.Material.Brick or L.Material == Enum.Material.Cobblestone then
        script.Parent.Concrete:Play()
    elseif L.Material == Enum.Material.DiamondPlate or L.Material == Enum.Material.CorrodedMetal or L.Material == Enum.Material.Metal then
        script.Parent.Metal:Play()
    elseif L.Material == Enum.Material.Ice then
        script.Parent.Ice:Play()
    elseif L.Material == Enum.Material.Foil then
        script.Parent.Foil:Play()
    elseif L.Material == Enum.Material.Granite then
        script.Parent.Granite.TimePosition = 0.175
        script.Parent.Granite:Play()
    elseif L.Material == Enum.Material.Grass or L.Material == Enum.Material.Fabric then
        script.Parent.Grass:Play()
    elseif L.Material == Enum.Material.Marble then
        script.Parent.Marble.TimePosition = 0.14
        script.Parent.Marble:Play()
    elseif L.Material == Enum.Material.Plastic or L.Material == Enum.Material.SmoothPlastic then
        script.Parent.Plastic:Play()
    elseif L.Material == Enum.Material.Sand then
        script.Parent.Sand.TimePosition = 0.2
        script.Parent.Sand:Play()
    elseif L.Material == Enum.Material.Wood or L.Material == Enum.Material.WoodPlanks then
        script.Parent.Wood:Play()
    elseif L.Material == Enum.Material.Pebble then
        script.Parent.Pebble:Play()
    elseif L.Material == Enum.Material.Neon then
        script.Parent.Neon:Play()
    elseif L.Material == Enum.Material.Glass then
        script.Parent.Glass:Play()
    end
end
script.Parent.Touched:connect(Step)

For me it worked

****IF YOU HAVE SOME QUESTIONS ADD ME ON DISCORD: Zypsoh#8546****

Ad

Answer this question