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: Attempt to index a boolean value?

Previous Thread :: Next Thread 
classy_chap is not online. classy_chap
Joined: 14 Mar 2009
Total Posts: 338
25 Jun 2016 01:04 AM
playerData:GetAsync(player.userId.."IsVIP").Changed:connect(function()
print("Is VIP")


Report Abuse
jbjgang2 is not online. jbjgang2
Joined: 07 Feb 2010
Total Posts: 8948
25 Jun 2016 01:06 AM
ummm.
why are u using .Changed lol
Report Abuse
classy_chap is not online. classy_chap
Joined: 14 Mar 2009
Total Posts: 338
25 Jun 2016 01:08 AM
to check if the player has become that thing.


Report Abuse
classy_chap is not online. classy_chap
Joined: 14 Mar 2009
Total Posts: 338
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 is not online. jbjgang2
Joined: 07 Feb 2010
Total Posts: 8948
25 Jun 2016 01:10 AM
Changed isnt an event of datastores
Report Abuse
jbjgang2 is not online. jbjgang2
Joined: 07 Feb 2010
Total Posts: 8948
25 Jun 2016 01:11 AM
not datastores but whatever data your getting
Report Abuse
Lem0nzzx is not online. 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
classy_chap is not online. classy_chap
Joined: 14 Mar 2009
Total Posts: 338
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 is not online. 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
classy_chap is not online. classy_chap
Joined: 14 Mar 2009
Total Posts: 338
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 is not online. 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 is not online. 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
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