|
| 31 Jul 2011 02:01 PM |
I can't figure it out..I've tried it probably 7 times..can someone make my leaderboard, (Script name "Board") add *1* point to a player every 5 seconds?
250 R$...or if no BC, please do it for kindness! |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 02:02 PM |
| Script would help us help you, you know? |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 02:03 PM |
| post what you've tried, dont ask us the whole thing |
|
|
| Report Abuse |
|
|
5943539
|
  |
| Joined: 05 Jan 2010 |
| Total Posts: 810 |
|
|
| 31 Jul 2011 02:05 PM |
| Calculate it with the time they've been in the server/5. Like math.floor(time()/5) within a localscript. |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 31 Jul 2011 02:05 PM |
function leaderstats(newPlayer)
leader = Instance.new("IntValue", newPlayer) leader.Name = "leaderstats"
points = Instance.new("IntValue", leader) points.Value = 0 points.Name = "Points"
while true do newPlayer.leaderstats.Points.Value = newPlayer.leaderstats.Points.Value + 1 wait(5)
end end
|
|
|
| Report Abuse |
|
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
Flurite
|
  |
| Joined: 03 Apr 2011 |
| Total Posts: 5386 |
|
|
| 31 Jul 2011 02:06 PM |
@5943539
You know you can just find when the player enters then use a while loop to add every five seconds you know.. :P |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 02:07 PM |
@my last post.
at the end put:
game.Player.PlayerAdded:connect(leaderstats)
|
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 02:08 PM |
@mycro
yup. i use it all the time. works.
|
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 31 Jul 2011 02:08 PM |
@mycro troller. get off forums. |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 31 Jul 2011 02:14 PM |
| yes i did. me and my cosinz |
|
|
| Report Abuse |
|
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 31 Jul 2011 02:15 PM |
| i tink myrco ish a trowl allso lololololol0 |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 02:15 PM |
when a new player enters, it gives 5secs then gives points, and repeats. while another player enters and it does the same. i did not put break on it. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 02:16 PM |
@spectrums that was a troll post to ^-^ trololol
|
|
|
| Report Abuse |
|
|
nightname
|
  |
| Joined: 10 Jun 2008 |
| Total Posts: 8960 |
|
|
| 31 Jul 2011 02:16 PM |
| Mycros, that should work, since Lua works by going line by line. |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 31 Jul 2011 02:21 PM |
omg i see an error at the connection. game.Player.PlayerAdded;connect() lul game.Players.PlayerAdded:connect() Players * player |
|
|
| Report Abuse |
|
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 31 Jul 2011 02:23 PM |
| Lol. Cody, your script wouldn't work even with that connection line fix you posted above me. |
|
|
| Report Abuse |
|
|