Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

FilteringEnabled blocks BadgeGiver, how i make it compatible?

Hello i have made a Badge Giver when you get 1.000.000 Points on the leaderstats but FilteringEnabled is on, and Badges only can get given out by Scripts but FilteringEnabled blocks that, how do i give out the Badge now?

plr = script.Parent.Parent
leader = plr:WaitForChild("leaderstats")
wait()

leader.Euro.Changed:connect(function()
	if leader.Euro.Value >= 1000000 then 
b = game:GetService("BadgeService")
b:AwardBadge(plr.UserId, 534164944)
end
end)

2 answers

✓ Accepted answer

You can do it one of two ways;

1) Have a script server-side scan the Player's points and continue to scan using Changed until they have x amount of points, then award the badge.

or...

2) Connect client/server-side with a RemoteEvent, have the local script client-side scan the Player's points and continue to scan using Changed until they have x amount of points, then fire to the server script to award the badge.

Either way should work, as long as you do it right.

You put the code in a normal script on the server and change it to fit that

This discussion is preserved as it was. New answers, comments, and votes are closed.