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

Holo help,I need this?

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



5 comments

0

As I've told you before, you need to declare the variable Holo prior to using it.

0

Its named

0

Its named Holo.

0

Output?

0

Workspace.Holo:8: 'then' expected near 'game'

1 answer

✓ Accepted answer

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.

1 comment

0

You helped a bit but not completely,though you did help so I will accept your answer :)

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