Answers for "check if player is in group"

Lua
1

check if player is in group

game.Players.PlayerAdded:Connect(function(newPlayer)
   if newPlayer:IsInGroup(0) then -- Change "0" With Group ID               
      print "Player is in Group!"     
   end
end)
Posted by: Guest on March-14-2021

Code answers related to "check if player is in group"

Browse Popular Code Answers by Language