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
 

How would I make players earn money every 5 minutes?

Previous Thread :: Next Thread 
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
21 Jun 2014 05:45 PM
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new('IntValue')
leaderstats.Parent = player
leaderstats.Name = "leaderstats"
local money = Instance.new('IntValue')
money.Parent = player.leaderstats
money.Name = "Cash"
money.Value = 500 --Change 0 to how much money you want the person to start with
end)

---

That's my script for leaderstats.

How would I make it give 50 every 5 minutes to all players?
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
21 Jun 2014 05:48 PM
In a regular script in workspace:

while wait(300) do
for i,v in pairs(game.Players:GetChildren()) do
v.leaderstats.IntValue.Value = v.leaderstats.Intvalue.Value + 50
end
end

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]
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