How would I make a badge script that would award a badge once a player has reached certain lvl. For example if player reaches Level 100 it would award him a badge. Thanks.
How would I make a badge script that would...?
1 answer
game.Players.PlayedAdded:connect(function(players))
if player.Stats.Level.Value == 100 then - change players.Stats.Level to wherether the level is located.
AwardBadge( player.userid, badgeId) -- Change BadgeId to the badges ID
end
end)
This will not work exactly and will need editting. It just checks for player to join and if their level is == 100 then give badge. I made it Stats.Level as I would image then would be intvalues inside the player. then the badgeID will have to be changed to the badges id. If you give mine a go, and edit it a bit to how your game is set, and it still dosent work, then i will make a script that will work.
3 comments
Would this be good?
OK I fixed it. I think you made allot of mistakes on purpose so that if I am noob I wouldn't get that but if I just needed some help with it then I would :) lol XD
yes I did make some mistakes, but only real minor stuff. I like to see people learn, and not just copy :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
have an if statement checking if the players level is == 100 then award badge. I am not gonna write the code. Check out http://wiki.roblox.com/index.php?title=AwardBadge_(Method) For the method of awarding badges in game.