a=game.Workspace.Holo.config
b=a.RankId
c=a.GroupId
game.Players.PlayerAdded:connect(function(plr)
if plr:GetRankInGroup(c.Value) >= b.Value then
plr.Chatted:connect(function(msg)
if string.lower(msg) == "sf" then
game.Lighting.Thing:Clone().Parent = game.Workspace
elseif string.lower(msg) == "close sf" then
if game.Workspace:FindFirstChild("Thing") then
game.Workspace.Thing:Remove()
end
end
end)
end
end)
Says Workspace.Holo:5: attempt to index global 'player' (a nil value)' what am I doing wrong?This might be the last problem to my script

3 comments
I have updated my script have I done something wrong now?
I mean like is there anything else wrong?
THANK YOU SO MUCH!