Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Holo?Help me please,I really need this for a group

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 '' what did I do wrong?I am not understanding what the output is talking about.

1 answer

✓ Accepted answer

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)


6 comments

0

But now it says unexpected symbol near )

0

Well, post the entire script, because I only see through line 14. So update the script on here with what you have currently

0

Alright thats what I have currently,but whats the problem?

0

You don't have enough end's I will post the new one in my answer

0

Alright if it works I will be very thankful :)

0

It should work, PM me on ROBLOX or comment here if you have any more questions

This discussion is preserved as it was. New answers, comments, and votes are closed.