|
| 25 Jun 2016 01:04 AM |
playerData:GetAsync(player.userId.."IsVIP").Changed:connect(function() print("Is VIP")
|
|
|
| Report Abuse |
|
|
jbjgang2
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 8948 |
|
|
| 25 Jun 2016 01:06 AM |
ummm. why are u using .Changed lol |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2016 01:08 AM |
to check if the player has become that thing.
|
|
|
| Report Abuse |
|
|
|
| 25 Jun 2016 01:10 AM |
I'm asking for help, not for people to criticize the way I choose to script.
|
|
|
| Report Abuse |
|
|
jbjgang2
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 8948 |
|
|
| 25 Jun 2016 01:10 AM |
| Changed isnt an event of datastores |
|
|
| Report Abuse |
|
|
jbjgang2
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 8948 |
|
|
| 25 Jun 2016 01:11 AM |
| not datastores but whatever data your getting |
|
|
| Report Abuse |
|
|
Lem0nzzx
|
  |
| Joined: 08 Feb 2016 |
| Total Posts: 1604 |
|
|
| 25 Jun 2016 01:11 AM |
I don't think that's possible. I connect my values seperate from GetASync like;
local stats = plr.leaderstats stats.KOs.Changed:connect(function() end)
And then when the datastore grabs the KOs and changes, it will fire the function and you can give them tools like weapons or something like that. |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2016 01:12 AM |
I was trying to get the value of the datastore, but I guess it's not gonna happen. I'll just use a while wait() do.
|
|
|
| Report Abuse |
|
|
jbjgang2
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 8948 |
|
|
| 25 Jun 2016 01:12 AM |
"I was trying to get the value of the datastore, but I guess it's not gonna happen."
what is it returning?? |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2016 01:14 AM |
I can normally get the value of it, it's just that it won't work with Changed.
|
|
|
| Report Abuse |
|
|
jbjgang2
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 8948 |
|
|
| 25 Jun 2016 01:15 AM |
| just put it into a stringvalue and then use .Changed on that |
|
|
| Report Abuse |
|
|
Lem0nzzx
|
  |
| Joined: 08 Feb 2016 |
| Total Posts: 1604 |
|
|
| 25 Jun 2016 01:15 AM |
| Maybe the value is located in a place where it can't be changed? |
|
|
| Report Abuse |
|
|