ExodiaForce

antiadmin

Dec 10th, 2024
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function CheckRole(Player)
  2. local groupRole = Player:GetRoleInGroup(game.CreatorId)
  3. if groupRole ~= "Member" and groupRole ~= "Guest" then
  4. warn(Player.DisplayName.."( @"..Player.Name.." ) Isn't a Member, Instead they're a "..groupRole)
  5. else
  6. print(Player.DisplayName.."( @"..Player.Name.." Is a "..groupRole.." In the group.")
  7. end
  8. end
  9. for _,v in pairs(game.Players:GetPlayers()) do
  10. CheckRole(v)
  11. end
  12. game.Players.PlayerAdded:Connect(CheckRole)
Add Comment
Please, Sign In to add comment