|
| 09 Jun 2014 05:56 PM |
Every 3 seconds, any player with the T-Shirt Id 155058413 will obtain 3 stats poits.
function statsPlus() while true do wait(3) for l,v in pairs(game.Players:GetPlayers()) do allow = { game:GetService("BadgeService"):UserHasBadge(v.UserId, 155058413) or v.UserId == game.CreatorId } if allow then v.leaderstats.Stats.Value = v.leaderstats.Stats.Value + 5 end end end end
statsPlus() |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 09 Jun 2014 06:04 PM |
allow = ( game:GetService("BadgeService"):UserHasBadge(v.UserId, 155058413) or v.UserId == game.CreatorId )
i dont see a reason why it wouldnt work |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2014 06:05 PM |
| Just making sure theres no hidden syntax error before I test it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jun 2014 07:12 PM |
are you sure it would be BadgeService? and PlayerHasBadge? i think it is something with PlayerOwnsAsset or something like that |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2014 07:13 PM |
| I've checked. I made a VIP door using BadgeService and UserHasBadge. I don't see why this shouldn't work... |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jun 2014 07:17 PM |
yes...?
This works, and its a door.
http://www.roblox.com/VIP-Door-item?id=158347057 |
|
|
| Report Abuse |
|
|