generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Roblox » Suggestions & Ideas
Home Search
 

Re: OnBadgeEarned Event

Previous Thread :: Next Thread 
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
10 Aug 2015 09:30 AM
Example Code:

game:GetService("BadgeService").OnBadgeEarned:connect(function(badgeId, plr)
print(plr.Name.." has earned the "..game:GetService("MarketplaceService"):GetProductInfo(badgeId).Name.." badge.")
end)
Report Abuse
cybersquat is not online. cybersquat
Joined: 02 Aug 2015
Total Posts: 5835
10 Aug 2015 12:32 PM
You need a function that actually distributes the badge to the player, so you can put the "print" line right after that line of code.
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
10 Aug 2015 01:11 PM
Well yes, that's simple. However, I want to be able to access it from separate scripts. That was just an example.
Report Abuse
Semaphorism is online. Semaphorism
Joined: 16 Feb 2008
Total Posts: 4831
10 Aug 2015 01:24 PM
BindableEvents
Report Abuse
cybersquat is not online. cybersquat
Joined: 02 Aug 2015
Total Posts: 5835
10 Aug 2015 03:23 PM
Use global functions or RemoteEvents, or the other remote stuff.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image