I have been searching everywhere, but I am unable to find an answer that works (which is why I am not including a script).
you would have to use the BadgeService
;
like this:
local Players = game:GetService("Players") local BadgeService = game:GetService("BadgeService"); local badgeId = 0000000- badge Id local door = --the door part that gets touched; door.Touched:Connect(function(part) local player = Players:GetPlayerFromCharacter(part.Parent); if(player) then local character = part.Parent local userId = player.UserId; local OwnsBadge = BadgeService:UserHasBadgeAsync(userId, badgeId); if(not OwnsBadge) then character.Humanoid.Health = character.Humanoid.Health - character.Humanoid.MaxHealth end end end)