How To Make A MUTE/UNMUTE GUI In Roblox Studio
352 بار بازدید -
6 ماه پیش
-
script:local MuteSound = game.SoundService.MuteSoundlocal play
script:
local MuteSound = game.SoundService.MuteSound
local play = false
script.Parent.MouseButton1Click:Connect(function()
if play then
MuteSound.Volume = 1 --volume from the music when it's on
play = false
script.Parent.Text = "🔊" else
MuteSound.Volume = 0
play = true
script.Parent.Text = "🔇"
end
end)
local MuteSound = game.SoundService.MuteSound
local play = false
script.Parent.MouseButton1Click:Connect(function()
if play then
MuteSound.Volume = 1 --volume from the music when it's on
play = false
script.Parent.Text = "🔊" else
MuteSound.Volume = 0
play = true
script.Parent.Text = "🔇"
end
end)
6 ماه پیش
در تاریخ 1402/10/09 منتشر شده
است.
352
بـار بازدید شده