When click make a sound, everytime I click though, the sound gets louder and louder

  1. I want to make it so everytime I click it plays a sound

  2. Clicking makes roblox sound distorted and really loud.

  3. Checking if sound is playing already


Do you have a script you’re working on for this?

local sound = -- reference your sound here
local mouse = game.Players.LocalPlayer:GetMouse()
local volumeIncrement = 1 -- change the sound increment to your preference

mouse.Button1Down:Connect(function()
    if not sound.IsPlaying then
        sound:Play() -- play the sound if it's not already playing
    end

    sound.Volume += volumeIncrement -- increases volume by your chosen increment
end)

If you want this to replicate to the server for everyone to hear then you’ll need to use RemoteEvents.

I don’t want it to get louder, thats my problem

local sound = -- reference your sound here
local mouse = game.Players.LocalPlayer:GetMouse()

mouse.Button1Down:Connect(function()
    if sound.IsPlaying then return end

    sound:Play()
end)

I just noticed that literally all of my sound gets louder, even out of roblox. How can this happen?

1 Like