Hello,
I'm making an alarm script, however, the settings will not update from the settings folder and bool value setup to tell the script if the normal alarm is on, or the gas alarm is on.
while true do
wait(0.1)
if game.Workspace.Settings.Alarms.Valu e== true then
wait(0.1)
script.Parent.BottomLight.Enabled = true
script.Parent.TopLight.Enabled = true
script.Parent.Spinner.Disabled = false
else
wait(0.1)
script.Parent.BottomLight.Enabled=false
script.Parent.TopLight.Enabled=false
script.Parent.Spinner.Disabled=true
script.Parent.Orientation = Vector3.new(90, -90, 0)
if game.Workspace.Settings.Gas.Value == true then
wait(0.1)
script.Parent.Parent.Lamp.BrickColor = BrickColor.new("Really blue")
script.Parent.TopLight.Color = Color3.new(0, 0, 255)
script.Parent.BottomLight.Color = Color3.new(0, 0, 255)
wait(0.1)
script.Parent.Orientation = Vector3.new(90, -90, 0)
script.Parent.BottomLight.Enabled = true
script.Parent.TopLight.Enabled = true
workspace.Settings.Alarms.Value = false
else
if game.Workspace.Settings.Gas.Value == false then
wait(0.1)
script.Parent.Parent.Lamp.BrickColor = BrickColor.new("CGA brown")
script.Parent.TopLight.Color = Color3.new(170, 85, 0)
script.Parent.BottomLight.Color = Color3.new(170, 85, 0)
script.Parent.BottomLight.Enabled = false
script.Parent.TopLight.Enabled = false
script.Parent.Orientation = Vector3.new(90, -90, 0)
end
end
end
end

4 comments
Where is the bool value located and is this script local?
No, this script is server, and the bool value is in workspace > Settings.
put it in a code block this time
I better be getting compensation for fixing your unindented code.