if player then
if player:IsInGroup(id) then -- Error here
print('In group')
end
end
ERROR
Player must be child of Players
Not entirely sure how that error is possible when the line before I make sure the player is in the game
if player then
if player:IsInGroup(id) then -- Error here
print('In group')
end
end
ERROR
Player must be child of Players
Not entirely sure how that error is possible when the line before I make sure the player is in the game
It doesn’t. It just checks if your variable isn’t nil.
if player and player.Parent
will check both that the player exists and that its parented somewhere.
That’s a facepalm moment on my end