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

Holo help,I need this?

Asked by 10 years ago

I am still working on a Holo and A LOT of people helped me,I want to thank them but I still need to finish the script. so heres what I got

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" 
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



0
As I've told you before, you need to declare the variable Holo prior to using it. wrenzh 65 — 10y
0
Its named Ex_plore 62 — 10y
0
Its named Holo. Ex_plore 62 — 10y
0
Output? Perci1 4988 — 10y
0
Workspace.Holo:8: 'then' expected near 'game' Ex_plore 62 — 10y

1 answer

Log in to vote
0
Answered by
Bman8765 270 Moderation Voter
10 years ago

I don't know if this helps but right here

 if string.lower(chat) == "sf"

you don't have then on the if statement, Proper way of writing this would be

 if string.lower(chat) == "sf" then
-- code
end

Probably just a typo or I could be missing something but that appears to be your first issue.

0
You helped a bit but not completely,though you did help so I will accept your answer :) Ex_plore 62 — 10y
Ad

Answer this question