local BadgeService = game:GetService("BadgeService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local badgeID = 2124695926
local OwnBadge = BadgeService:UserHasBadgeAsync(Player.UserId, badgeID)
local locked = Player:WaitForChild("PlayerGui").Halo.MainFrame:WaitForChild("Purple Frame")
local main = locked.locked
local function CheckForBadge()
if OwnBadge == true then
main.Visible = false
end
if OwnBadge == false then
main.Visible = true
end
end
CheckForBadge()