i want to make a scrip that check if a player onw a badge and in a gui that appear and dissapear update a frame whit a ? can someone help me?
You can check if a user owns a badge using BadgeService:UserOwnsBadgeAsync()
.
local BadgeService = game:GetService("BadgeService") local BadgeId = 000000000000 -- Check every player that joins if they own the badge game:GetService("Players").PlayerAdded:Connect(function(player) if not BadgeService:UserOwnsBadgeAsync(player.UserId, BadgeId) then return -- Cancelling the function early if the player doesn't have the badge end print(player.Name .. " owns the badge!") end)
This may help https://create.roblox.com/docs/reference/engine/classes/BadgeService And here's a video https://www.youtube.com/watch?v=Bxm-uiO7i88