How can I make a chat command where it changes the bool value of a specific section?

The Explorer path below

Yes the value is a boolvalue

im just going to rewrite parts of the entire script

game:GetService("Players").PlayerAdded:Connect(function(player)

permission = {"UOME2K"}--Please keep my username is tere, :D

if not table.find(premission,player.Name) then return end -- this is optional

player.Chatted:Connect(function(msg)

local ecoboolvalue = player:WaitForChild("PlayerGui").SCI.SelfCheckInFrame.ecoInfo:FindFirstChild("EcoDecision").Value


if msg:lower() == "!openeconomy" then
	ecoboolvalue = true
	
elseif msg:lower() == "!closeeconomy" then
	ecoboolvalue = false
	-- If value of 'testBoolean' is false, this condition is executed
end
end)
end)
1 Like

Ill let u know if your script worked

Still isnt working for some strange reason. :frowning: @56ytr56