Universal Script ๐Ÿ“Œ
6.3k Views
20 Executions

Roblox oof sound

Universal Script ๐Ÿ“Œ
Patrick99
Patrick99First script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

โ€œEDIT: oof is backโ€ Hey! So I've noticed that the Roblox oof sound scripts do not work so I decided to make one. Let me know if there are any bugs with it! It removes the new boring moan sound the with the AWESOME EPIK OOF SOUND use this for some nostalgia

Updates

  1. Script edited: Update script

  2. Script edited: Create script

View Raw
local player = game.Players.LocalPlayer

-- This function removes the grunt sound from the character's humanoid
local function removeGruntSound(character)
    -- Wait for the character to fully load
    local humanoid = character:WaitForChild("Humanoid")
    
    -- Remove any existing death sounds from the HumanoidRootPart
    local soundFolder = character:FindFirstChild("HumanoidRootPart")
    if soundFolder then
        for _, obj in pairs(soundFolder:GetChildren()) do
            if obj:IsA("Sound") then
                obj:Destroy()  -- Remove the default grunt death sound
            end
        end
    end
end

-- This function plays the Oof sound every time the character dies
local function playOofSound(character)
    local humanoid = character:WaitForChild("Humanoid")
    
    humanoid.Died:Connect(function()
        -- Play the Oof sound upon death
        local sound = Instance.new("Sound")
        sound.SoundId = "rbxassetid://1237557124"  -- Original Oof Sound
        sound.Volume = 1  -- Set volume to 1 (default)
        sound.Parent = game.SoundService  -- Parent to SoundService for persistence
        sound:Play()
    end)
end

-- This function is responsible for handling the respawn and playing the Oof sound
local function onCharacterAdded(character)
    -- Remove the grunt death sound and add the Oof sound
    removeGruntSound(character)
    playOofSound(character)

    -- Prevent re-adding grunt death sound after respawn by applying this to each respawn
    character:WaitForChild("Humanoid").Died:Connect(function()


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script ๐Ÿ“Œ
10.3k
269
Bumped 1 hour ago
High Qualityย Offering
Universal Script ๐Ÿ“Œ
8.4k
32.8k
Bumped 1 hour ago
Key System
Universal Script ๐Ÿ“Œ
1.4k
5.9k
Bumped 2 hours ago
Script hub
22.0k
4.3k
Bumped 3 hours ago
Key System
Paid
High Qualityย Offering
Universal Script ๐Ÿ“Œ
1.1k
2.2k
Bumped 3 hours ago
Universal Script ๐Ÿ“Œ
1.6k
5.9k
Bumped 3 hours ago
Script hub
164.7k
566.3k
Bumped 6 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT