Top.Mail.Ru
Ответы

ПОМОГИТЕ СО СКРИПТОМ ПОЖАЛУЙСТА!!

local GameAudio = script.Parent.Frame.Music -- Change Frame to whatever your Frame which holds everything in is called

GameAudio.Text = "Mute"

local PlaylistActive = false

local MusicSoundGroup = game:GetService("SoundService").SoundGroup -- Change SoundGroup to whatever your SoundGroup is called

GameAudio.MouseButton1Click:Connect(function()

if not PlaylistActive then

MusicSoundGroup.Volume = 0

GameAudio.Text = "Unmute"

PlaylistActive = true

else

MusicSoundGroup.Volume = 0.5 -- This is the volume of the audio when they turn it back on

GameAudio.Text = "Mute"

PlaylistActive = false

end

end)

еще мне нужно что бы я смог включать и выключать



Видео по теме