local Players = game:GetService("Players")
local BadgeService = game:GetService("BadgeService")
local id = 2124618277
Players.PlayerAdded:Connect(function(player)
local pumpkin = Instance.new("NumberValue")
pumpkin.Name = "Pumpkin"
pumpkin.Value = 0
pumpkin.Parent = player
while not player:FindFirstChild("PlayerGui"):FindFirstChild("ScreenGui")do wait() end
local debounce = false
while wait(1) do
local Guis = player.PlayerGui.ScreenGui
local CollectedPumpkins = pumpkin.Value
if Guis then
Guis.kutu.TextLabel.Text = ("10/"..CollectedPumpkins)
end
end
--if player.Pumpkin.Value >= 10 then
if pumpkin.Value >= 10 then
pcall(BadgeService.AwardBadge, BadgeService, player.UserId, id)
end
end)
I am using it but only Badge is not working. When the pumpkins is 10, it does not badge award and does not work.. What should I do?

1 comment
I tried it didn't work. pcall(function() Guis.kutu.TextLabel.Text = MaxPumpkins .. "/" .. Pumpkin.Value end) end) end-- Part of it is "Guis" underlined and didn't work.