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 » Scripters
Home Search
 

Re: Making my own in-game currency

Previous Thread :: Next Thread 
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
23 May 2015 01:23 PM
So, i tried making a numbervalue on a player added event so make it as my own cash

Problem, is it doesnt get made help meh..........

game.Players.PlayerAdded:connect(function(player) --We create a function that will execute when PlayerAdded fires.
local zen = Instance.new("NumberValue")
zen.name = zen
zen.parent = player
end)
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
23 May 2015 01:24 PM
game.Players.PlayerAdded:connect(function(player)
local zen = Instance.new("NumberValue")
zen.name = zen
zen.parent = player
end)


mb i forgot i had that part added in(damns comments)
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
23 May 2015 01:25 PM
Capitalization matters in Lua.

zen.Name = "Zen"
zen.Parent = player
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
23 May 2015 01:34 PM
Oh, lol ty

i forgot the quotes
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
23 May 2015 01:43 PM
Learn to use output.
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
23 May 2015 02:17 PM
i will- eventually


Now i wanted to add a certain amount of cash every 5 secs

i started with(in the same script)

while true do
for _, Player in pairs(game.Players:GetPlayers()) do
end)
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
23 May 2015 02:18 PM
http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
23 May 2015 02:19 PM
^ look at this smartass right here
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
23 May 2015 02:22 PM
Just use FindFirstChild to find the stat inside the player, then if the stat exists add the amount to it. Then, use wait(theAmountOfTimeInbetweenMoney).
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
23 May 2015 03:42 PM
how do i add it because i go dumb on the simple things <.<
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
23 May 2015 03:49 PM
http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
23 May 2015 03:52 PM
http://www.roblox.com/Forum/ShowPost.aspx?PostID=162392490

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
23 May 2015 03:57 PM
Linking the beginners guide XD



-𝒩 | Anticodist, Scripter
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
23 May 2015 04:07 PM
JUST TELL ME GOD DAMN IT

i already know the bascis stop being douges
Report Abuse
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
23 May 2015 04:13 PM
Give a man a fish, feed him for a day. Teach a man to fish, feed him for a lifetime.



-𝒩 | Anticodist, Scripter
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
23 May 2015 04:48 PM
^ This guy knows his stuff
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
23 May 2015 04:51 PM
he says a saying like.....i dont know the bascis..........

simple question......i get hit with links
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
24 May 2015 06:08 AM
Maybe you should go over the basics. It never hurts.

Anyway, Currency.Value = Currency.Value + Amount
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
24 May 2015 06:48 AM
>says he knows the basics

>>local zen = Instance.new("NumberValue")
zen.name = zen
zen.parent = player
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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