-
I want to make it so everytime I click it plays a sound
-
Clicking makes roblox sound distorted and really loud.
-
Checking if sound is playing already
I want to make it so everytime I click it plays a sound
Clicking makes roblox sound distorted and really loud.
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?