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
 

Re: Would this work?

Previous Thread :: Next Thread 
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
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 is not online. 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
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
09 Jun 2014 06:05 PM
Just making sure theres no hidden syntax error before I test it.
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
09 Jun 2014 07:11 PM
Huh its not working...
Report Abuse
Drybones3363 is not online. Drybones3363
Joined: 16 Aug 2013
Total Posts: 1547
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
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
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
Drybones3363 is not online. Drybones3363
Joined: 16 Aug 2013
Total Posts: 1547
09 Jun 2014 07:14 PM
for a t-shirt?
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
09 Jun 2014 07:17 PM
yes...?

This works, and its a door.

http://www.roblox.com/VIP-Door-item?id=158347057
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