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 » Game Creation and Development » Scripting Helpers
Home Search
 

BadgeService Help

Previous Thread :: Next Thread 
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
31 Oct 2012 07:17 PM
So when using UserHasBadge method with BadgeService for a t-shirt; do I subtract the number at the end of the id for finding the original image, or just get the id of the t-shirt to use. Please help.
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
31 Oct 2012 07:39 PM
Just the ID of the t-shirt. Subtracting 1 gives you the texture ID which you don't use.
Report Abuse
glosgreen2 is not online. glosgreen2
Joined: 06 Jul 2009
Total Posts: 1303
31 Oct 2012 07:40 PM
^
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
31 Oct 2012 07:42 PM
When I do that, it still doesn't work. Help?
Report Abuse
glosgreen2 is not online. glosgreen2
Joined: 06 Jul 2009
Total Posts: 1303
31 Oct 2012 07:43 PM
Only works in online mode, not build or play solo.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
31 Oct 2012 08:29 PM
I know. It doesn't work in online mode. The following script is in a FlagStand:

script.Parent.Touched:connect(function(hit)
pcall(function()
player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
player.Character["Blue Flag"]:Destroy()
player.leaderstats.Captures.Value = player.leaderstats.Captures.Value + 1

--below
id = 96515523
if game:GetService("BadgeService"):UserHasBadge(player.userId, id) then
player.leaderstats.Score.Value = player.leaderstats.Score.Value + 3
end
--up

end
end)
end)

Also it doesn't regen the other teams flag automatically like it's supposed to.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
31 Oct 2012 09:44 PM
BoH
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
31 Oct 2012 10:36 PM
Nevermind, figured it out.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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