How to kick someone if they don't own a badge?

I just want to make a script where it kicks you when you attempt to join the place if you don’t own a specific badge & it will say a specific kick message (kick reason), how would I do that?

1 Like

You use BadgeService:UserOwnsBadgeAsync() to do this.

if not BadgeService:UserOwnsBadgeAsync(userId, Badge) then
    player:Kick("Message")
end
3 Likes

use badgeservice and UserHasBadgeAsync, else player:Kick(“message”)

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.