Player must be child of Players

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

1 Like

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.

3 Likes

That’s a facepalm moment on my end :man_facepalming:

6 Likes