Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 10 years ago

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.

1 answer

Log in to vote
0
Answered by 10 years ago

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)


0
But now it says unexpected symbol near ) Ex_plore 62 — 10y
0
Well, post the entire script, because I only see through line 14. So update the script on here with what you have currently Tempestatem 884 — 10y
0
Alright thats what I have currently,but whats the problem? Ex_plore 62 — 10y
0
You don't have enough end's I will post the new one in my answer Tempestatem 884 — 10y
View all comments (2 more)
0
Alright if it works I will be very thankful :) Ex_plore 62 — 10y
0
It should work, PM me on ROBLOX or comment here if you have any more questions Tempestatem 884 — 10y
Ad

Answer this question