So I am having trouble with my script and you could probably tell I repeatedly ask because people forget about me so here are my last time script changes
a=Holo.config b=a.RankId c=a.GroupId game.Players.PlayerAdded:connect(function(plr) if player:GetRankInGroup(c.Value) >= b.Value then player.Chatted:connect(function(msg) if string.lower(chat) == "sf" then game.Lighting.Thing:Clone().Parent = game.Workspace elseif string.lower(chat) == "close sf" then if game.Workspace:FindFirstChild("Thing") then game.Workspace.Thing:Remove() end end) end)
The output says Workspace.Holo:16: ')' expected (to close '(' at line 6) near '<eof>' what did I do wrong?I am not understanding what the output is talking about.
Well, for one thing, you have an added function, so on one of the ends' you should make it
end)
But I also see you added a Chatted function, you should change another end to end)
I am not sure why, it is just what I learned. From what I can figure out, it ends that specific function
a=Holo.config b=a.RankId c=a.GroupId game.Players.PlayerAdded:connect(function(plr) if player:GetRankInGroup(c.Value) >= b.Value then player.Chatted:connect(function(msg) if string.lower(chat) == "sf" then game.Lighting.Thing:Clone().Parent = game.Workspace elseif string.lower(chat) == "close sf" then if game.Workspace:FindFirstChild("Thing") then game.Workspace.Thing:Remove() end end end) end end)