Badge script not working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    An egg hunt script
  2. What is the issue? Include screenshots / videos if possible!
    It wont work.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    None.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local delay = false
game["Run Service"].Heartbeat:Connect(function()
	if workspace.Eggs.Value >= 3 and delay == false then
		delay = true
		workspace.A60Jump:Play()
		for i, player in pairs(game.Players:GetPlayers()) do
			game.BadgeService:AwardBadge(player.UserId, 2965785094186268)
			print("Badge Awarded")
		end
		script:Destroy()
	end
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

If you try printing something the line before your for loop, does it print?

1 Like

nevermind, i just wasnt testing it right.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.