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)