game.Players.ChildAdded:connect(function(player)
player.Chatted:connect(function(chat)
if player:GetRankInGroup(config.GroupId.Value) >= config.RankId.Value then
if string.lower(chat) == "SF" then
if not game.Workspace:FindFirstChild("Thing") then
game.Lighting.Thing:Clone().Parent = game.Workspace
end
elseif string.lower(chat) == "close/gf" then
if game.Workspace:FindFirstChild("Thing") then
game.Workspace.Thing:Remove()
end
end
end
end)
end)
Thats what I have so far so can you tell me what I did wrong?

6 comments
You helped a little bit but when said that config had to be declared I have trouble understanding what you mean
Where is your configuration folder?
Inside the script
What is it called?
Configuration
Then above the first line, write config = script.Configuration