You are not logged in. Please log in if you wish to participate in all discussions on the website, chat with friends, and use everything we've got to offer.

Click Register below to, well, register. Derp. Enjoy your stay. ;)

If you do not have an account and wish to create one, please follow the link below.

http://www.robloxtoday.net/register

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 So, you want to script a badge? on 8/22/2010, 11:54 pm

PyroCity


Normal Robloxian
Normal Robloxian
Well, I have noticed a couple of Badge help threads, and I thought I might make a thread explaining BadgeService.

First, BadgeService is the service used to award badges. But BadgeService can do much more than that. In fact, using BadgeService, you can make a VIP shirts effects work without the person needing to wear the shirt!

Most basic kind of badge awarder script:

Code:

function Entered(player)
wait(0.3)--I always do this for some reason...
game:GetService("BadgeService"):AwardBadge(player.userId,1234322)
end
game.Players.PlayerAdded:connect(Entered)


Simple. But you can mix that up a bit:

Code:

function Entered(player)
wait(0.3) --I always do this for some reason...[/color]
Rand = math.random(1,2)
if Rand == 1 then
game:GetService("BadgeService"):AwardBadge(player.userId,1234322)
end
end
game.Players.PlayerAdded:connect(Entered)


With that,a a player has a 50/50 chance of getting a badge when they enter. For those good scripters reading this, Im sure you can figure this out.

If you need more help, just reply!

View user profile

2 Re: So, you want to script a badge? on 8/23/2010, 8:36 am

Cadthrenal


New Robloxian
New Robloxian
Just a little annoying note at the the end... 50 divided with 50 is 1... ^^ Sorry for annoying, but thats what I do :lol!: And also, how do I check if the player already has a badge, just want to know :D

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum