#Mute / Unmute button

1 messages · Page 1 of 1 (latest)

bronze fable
#

Got this from a youtube video. Does not work. I just started today please be kind.

#

script.Parent.Text = "Mute" -- The initial text when the game loads
local PlaylistActive = false
local MusicSoundGroup = game:GetService("SoundService").SoundGroup -- Change SoundGroup to whatever your SoundGroup is called

script.Parent.MouseButton1Click:Connect(function()
if not PlaylistActive then
MusicSoundGroup.Volume = 0
script.Parent.Text = "ON"
PlaylistActive = true
else
MusicSoundGroup.Volume = 0.5 -- This is the volume of the audio when they turn it back on
script.Parent.Text = "Mute"
PlaylistActive = false
end
end)

warm marsh
#

if it doesnt work ask someone who actually scripts i dunno 🤷

abstract lark
#

and why are you even here if you don't know how to script

warm marsh
abstract lark
#

what did comments do to you

#

💔💔💔

#

bro has commentphobia

warm marsh
#

unless u got another scripter on the team

#

they just useless

abstract lark
warm marsh
abstract lark
bronze fable
#

pleasedont argue, just need help 😅...

abstract lark
bronze fable
abstract lark
#

go to the script tab

#

the thing on the top of your screen

bronze fable
#

my local script

#

yea

abstract lark
#

wym

bronze fable
#

im using local script for it since im using a button

abstract lark
#

the urge to not call a beginner stupid

bronze fable
#

i lit started 2 hrs ago

abstract lark
#

the thing where

#

it says

bronze fable
#

ohh

abstract lark
#

Model Avatar Script Plugins

wooden tideBOT
#

studio** You are now Level 2! **studio

abstract lark
#

etc

#

press script

bronze fable
#

is this it

abstract lark
#

yea

bronze fable
#

okae

abstract lark
bronze fable
abstract lark
#

ykw nvm im going to sleep

bronze fable
#

oh ok

abstract lark
wanton nebula
mystic thistle
# bronze fable

your script works if the button is a TextButton, not an ImageButton