Text does not change

My code is meant to change the TextLabel’s text to “On” , when auto apps is on.

local AutoApps = game.ServerScriptService.AutoCommends
local Sign = script.Parent

if AutoApps.Disabled then
	Sign.Text = "Off"
else
	Sign.Text = "On"
	
	
end


But the text stays at off.

My code in the other button to toggle it on and off is:


local ServerScriptService  = game:GetService("ServerScriptService")


script.Parent.MouseButton1Click:Connect(function()
	if game.ServerScriptService.AutoCommends.Disabled then
		game.ServerScriptService.AutoCommends.Disabled = false
	else
		game.ServerScriptService.AutoCommends.Disabled = true
	end
end)

Anyone know why it’s not working?

Don’t think you can disable a serverscript from a server sided storage from the client at all. You’d have to find a different method I believe.

You cant access the server (server script service or server storage) from a local script, you should use a remote event