#Badge Requirements

9 messages · Page 1 of 1 (latest)

wise kettle
#

Hi, im a small creator and im having trouble creating a badge requirement.

#
local a = game:GetService("BadgeService")
local b = game:GetService("Players")

local badgeID = 1836403715887793
local debounce = false

script.Parent.Touched:Connect(function(player)
    if player:FindFirstChild("Humanoid") then
        debounce = true
        local player2 = b:GetPlayerFromCharacter(player.Character)
        if a:UserHasBadgeAsync(player2.UserID,badgeID) then

            print("yippee")
            task.wait(0.1)
            debounce = false
        elseif not     a:UserHasBadgeAsync(player2.UserID,badgeID) then
                player.Humanoid.Health = 0
                print("you dont have the badge for fell")
                task.wait(0.1)
                debounce = false
        end
    end

end)``` this is my current script
#

but this doesn't work

wise kettle
#

i forgot to add it earlier

slow garden
#

But the badge is for?

wise kettle