fixylol
|
  |
| Joined: 14 Dec 2012 |
| Total Posts: 7412 |
|
|
| 27 Oct 2014 11:21 AM |
i use a gamepass for vip. the script that gives players vip is this:
function givememoney() local players = game.Players:GetChildren() for x=1, #players do players[x].Value.Value = players[x].Value.Value + imakethis --players[x].PlayerGui["Reset Gui"].Money.Money.Value.Value = players[x].PlayerGui["Reset Gui"].Money.Money.Value.Value + imakethis end end
the money they earn is 5 and they earn it every 60 seconds. how do i make it so the people who have vip get 100 cash every 60 seconds?
add eleventeen billion to my post count |
|
|
| Report Abuse |
|
|
iondriver
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
|
| 27 Oct 2014 11:36 AM |
| Stick an if statement when you actually assign the new amount. there is a method you can use to see if somebody has something. I cant remember the name. Search Gamepass on the wiki. If that doesn't work, search the old VIP system. |
|
|
| Report Abuse |
|
|
WishNite
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 15828 |
|
|
| 27 Oct 2014 12:01 PM |
players[x].Value.Value = players[x].Value.Value + (game:GetService("MarketplaceService"):UserHasAsset(players[x],gamepassID) and 15) or 5)
Change gamepassID to the gamepass ID. 15 is the value that VIP makes. 5 is the nonvip makes |
|
|
| Report Abuse |
|
|
WishNite
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 15828 |
|
|
| 27 Oct 2014 12:01 PM |
players[x].Value.Value = players[x].Value.Value + (game:GetService("MarketplaceService"):UserHasAsset(players[x],gamepassID) and 15) or 5)
Change gamepassID to the gamepass ID. 15 is the value that VIP makes. 5 is the nonvip makes |
|
|
| Report Abuse |
|
|