Egzekiel
|
  |
| Joined: 10 Jan 2011 |
| Total Posts: 1079 |
|
|
| 26 Dec 2014 11:52 AM |
Yo guys, so here is my problem, i made a leaderboard value named Rings, if someone touch a ring, it will add 1 ring to his ring counter but the problem is that the value doesn't change, can't figure out how to fix it. --LocalScript p=script.Parent
local debounce=false
p.Touched:connect(function(hit)
if not debounce then debounce=true local plr=game.Players.PlayerAdded:wait() plr.leaderstats.Rings.Value=plr.leaderstats.Rings.Value+1 wait(10) debounce=false end end) |
|
|
| Report Abuse |
|
|
ogBailz
|
  |
| Joined: 30 Nov 2014 |
| Total Posts: 1407 |
|
| |
|
ChuckXZ
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 2996 |
|
| |
|
Egzekiel
|
  |
| Joined: 10 Jan 2011 |
| Total Posts: 1079 |
|
| |
|
Egzekiel
|
  |
| Joined: 10 Jan 2011 |
| Total Posts: 1079 |
|
| |
|
|
| 26 Dec 2014 01:06 PM |
Shouldn't be in a localscript if it is in workspace. Place it in a normal script.
|
|
|
| Report Abuse |
|
|