I'm trying to make a mute button for my song playing script and i'm using a string value to change if it plays or not.

here is my local script

local switch = true

script.Parent.MouseButton1Click:Connect(function() -- when i click the button it changes switchs bool value
if script.Parent.Text == "Music: On" then
	script.Parent.Text = "Music: off"
	else
		script.Parent.Text = "Music: On"
end

  end)

my problem is that while in game the Gui text changes when I look into it's properties tab and look at Text it doesn't change at all.

I'm using a local script because I only want the audio to be mute for one player not the whole server so I can't really find what the problem is

3 comments

0

i'm pretty sure thats because its a local script and not a server script

0

yeah i know but even tho its a local script it should still change right? only for the client

0

even thought i changed it to a server script it doesn't change the value i'm not sure why even thought it does change the gui on the screens text