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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 23 May 2015 01:34 PM |
Oh, lol ty
i forgot the quotes |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 23 May 2015 02:18 PM |
| http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 23 May 2015 02:19 PM |
| ^ look at this smartass right here |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 23 May 2015 03:49 PM |
| http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 23 May 2015 03:57 PM |
Linking the beginners guide XD
-𝒩 | Anticodist, Scripter |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 23 May 2015 04:48 PM |
| ^ This guy knows his stuff |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 24 May 2015 06:08 AM |
Maybe you should go over the basics. It never hurts.
Anyway, Currency.Value = Currency.Value + Amount |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 06:48 AM |
>says he knows the basics
>>local zen = Instance.new("NumberValue") zen.name = zen zen.parent = player |
|
|
| Report Abuse |
|
|