Answers for "detect if a player is in a 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 "detect if a player is in a group"

Browse Popular Code Answers by Language