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: Game Pass Bonus, not working

Previous Thread :: Next Thread 
NarutoBl is not online. NarutoBl
Joined: 25 Jan 2009
Total Posts: 182
17 Aug 2013 04:22 AM
GamePassID = 126790666
CreditType = ExpBonus
MaxSpecial = 3000
NoSpecial = 0

game.Players.PlayerAdded:connect(function(player)
if game:GetService("GamePassService"):PlayerHasPass(player.userId, GamePassID) then
player:findFirstChild("Data").CreditType.Value = MaxSpecial
else
player:findFirstChild("Data").CreditType.Value = NoSpecial
end
end)

PlayersService.PlayerAdded:connect(OnPlayerAdded)
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
17 Aug 2013 04:27 AM
CreditType = "ExpBonus"

Should work
Report Abuse
NarutoBl is not online. NarutoBl
Joined: 25 Jan 2009
Total Posts: 182
17 Aug 2013 04:33 AM
^ Didn't work :c
I think there is a problem somewhere.
Report Abuse
Voidion is not online. Voidion
Joined: 01 Aug 2011
Total Posts: 2668
17 Aug 2013 04:34 AM
"PlayersService.PlayerAdded:connect(OnPlayerAdded)"

^ What is this?
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
17 Aug 2013 04:36 AM
If your game has a Data persistence, that'd mean this could be exploited for free Exp.
And i'm pretty sure Getkoed is right.
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
17 Aug 2013 05:21 AM
@what above and two above said
Report Abuse
NarutoBl is not online. NarutoBl
Joined: 25 Jan 2009
Total Posts: 182
17 Aug 2013 05:28 AM
So it functions when the player is added but i'm not sure if this is working.

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function()
if game:GetService("GamePassService"):PlayerHasPass(player, 126790666) then
wait(3)
player.Data.WeaponSpecial.Value = 5000
else
player.Data.WeaponSpecial.Value = 0
end
end)
end)

This is the new one that I wrote up and changed, I'm not familiar with game passes but it's not owrking for some reason.
Report Abuse
NarutoBl is not online. NarutoBl
Joined: 25 Jan 2009
Total Posts: 182
17 Aug 2013 06:25 AM
bump plumb
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