--// lighting

local lg = game:GetService("Lighting")
local bm = lg:FindFirstChild("Bloom")
local sr = lg:FindFirstChild("SunRays")
local bl = lg:FindFirstChild("Blur")
local cc = lg:FindFirstChild("ColorCorrection")

bf.Text = "ALLOWED" -- set the state of the play jump

if bf.Text == "DISABLED" then
	bf.BackgroundColor3 = Color3.new(1, 0, 0)
	bm.Enabled = false
	sr.Enabled = false
	bl.Enabled = false
	cc.Enabled = false
end
if bf.Text == "ALLOWED" then
	bf.BackgroundColor3 = Color3.new(0, 1, 0)
	bm.Enabled = true
	sr.Enabled = true
	bl.Enabled = true
	cc.Enabled = true
end

bf.MouseButton1Click:Connect(function()
	if bf.Text == "ALLOWED" then
		bf.Text = "DISABLED"
		-- custom command
		bf.BackgroundColor3 = Color3.new(1, 0, 0)
		bm.Enabled = false
		sr.Enabled = false
		bl.Enabled = false
		cc.Enabled = false
	elseif bf.Text == "DISABLED" then
		bf.Text = "ALLOWED"	
		-- custom command #2
		bf.BackgroundColor3 = Color3.new(0, 1, 0)
		bm.Enabled = true
		sr.Enabled = true
		bl.Enabled = true
		cc.Enabled = true
	end
end)
