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

why does this running sound play faster than it should?

Asked by 5 years ago

hi, i found a script that let me change the default sounds but the walk sound plays faster than it should be and i dont know why, here is the script

local soundIds = {
    ["rbxasset://sounds/action_falling.mp3"] = "rbxasset://sounds/action_falling.mp3";
    ["rbxasset://sounds/action_footsteps_plastic.mp3"] = "rbxassetid://250852403";
    ["rbxasset://sounds/action_get_up.mp3"] = "rbxasset://sounds/action_get_up.mp3";
    ["rbxasset://sounds/action_jump.mp3"] = "rbxassetid://161619979";
    ["rbxasset://sounds/action_jump_land.mp3"] = "rbxasset://sounds/action_jump_land.mp3";
    ["rbxasset://sounds/action_swim.mp3"] = "rbxasset://sounds/action_swim.mp3";
    ["rbxasset://sounds/impact_water.mp3"] = "rbxasset://sounds/impact_water.mp3";
    ["rbxasset://sounds/splat.wav"] = "rbxasset://sounds/splat.wav";
    ["rbxasset://sounds/uuhhh.mp3"] = "rbxasset://sounds/uuhhh.mp3";

}

local function fixSound(instance)
    if (instance:IsA("Sound")) then
        instance.SoundId = (soundIds[instance.SoundId] or instance.SoundId)
     end
end

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        for _, child in next, character.Head:GetChildren() do
            fixSound(child)
         end
         character.Head.ChildAdded:connect(fixSound)
     end)
end)

line 3 is the one i changed to change the walk sound

thanks

1 answer

Log in to vote
0
Answered by 5 years ago

Make it so all the sounds have they're own playback speed set to 1 or somethin

Ad

Answer this question