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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 10 Aug 2015 03:23 PM |
| Use global functions or RemoteEvents, or the other remote stuff. |
|
|
| Report Abuse |
|
|