So I am working on a Training Holo and the string wont work! So far a couple of people have helped me out but anyways,heres what I have so far it doesnt seem to be working so I need help!
a=Holo.configuration
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

14 comments
What do you mean by defined?Like variables?
Yes. You use both
configandplayerwithout ever telling Lua what their values are.So I would need to do something like config=game.Workspace.configuration?
Yes.
What about plr?
Replace occurrences of
playerwithplr.How do I do that
If you wrote "player" somewhere, write "plr" instead...
Alright but did I not have that already?Above plr it has player so does that mean technically I did it?
No. That is the mistake I am talking about. You use
playerbut you never define it.plras a parameter to the function (line 1) acts as a definition forplr.playerremains undefined. Useplralways in this script instead.So you suggest I just switch plr to player?
It doesn't matter which one you switch to which, but you can only use one of the two in this script.
Alright
I put a new script in I am having trouble with the ends I think