hello there again, incase you didn’t know, I posted one post for peoples to help me with making mute button for Sound region made by HowtoRoblox in youtube, the link to my previous post:
previous post of mute button for sound region by me
read previous post for bit more informations. thanks, and I recommend also watching HowtoRoblox’s sound region video for more understanding.
HowtoRoblox’s sound region video
anyway, I used script that IlIBlock_MANIlI on roblox made with chatGPT but only thing the script did was locating the sound object inside startercharacter local script that getsinjected inside every player models, however even through I pressed the gui button, it doesn’t change the playing value of sound object at all. also this script will mute the sound object of local player, not muting everyone’s sound object.
I am looking for more people that could help me fix the script that IlIBlock_MANIlI shared to me, thank you so much. and also here is repost of script that IlIBlock_MANIlI shared to me.
(IlIBlock_MANIlI's script)
local mutebutton = script.Parent
local playing = true
mutebutton.MouseButton1Click:Connect(function()
local music = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Sound")
if music then
if playing then
music.Playing = false
mutebutton.Text = "Unmute Musics"
playing = false
else
music.Playing = true
mutebutton.Text = "Mute Musics"
playing = true
end
end
end)
I suck at scripting an can’t even understand some of things that this script does, but I get some of point of this script, however there is still error of this script and IlIBlock_MANIlI didn’t responded to me. so any help of fixing the script will be generous, thank you
-mari