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?