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: how do i make vip earn more money than normal players?

Previous Thread :: Next Thread 
fixylol is not online. 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 is not online. 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 is not online. 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 is not online. 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
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