|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 31 Oct 2012 07:42 PM |
| When I do that, it still doesn't work. Help? |
|
|
| Report Abuse |
|
|
|
| 31 Oct 2012 07:43 PM |
| Only works in online mode, not build or play solo. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 31 Oct 2012 10:36 PM |
| Nevermind, figured it out. |
|
|
| Report Abuse |
|
|