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: changed event question

Previous Thread :: Next Thread 
StormPegasus4CFC is not online. StormPegasus4CFC
Joined: 18 Jun 2014
Total Posts: 193
24 May 2016 12:19 PM
I'm using data persistence to save numbers in variables.

How can i check if the variable exists?

Changed event works but I can't get it to verify if the variable actually exists, so it gives me error or doesn't work when i remove / add the variable.
Report Abuse
StormPegasus4CFC is not online. StormPegasus4CFC
Joined: 18 Jun 2014
Total Posts: 193
24 May 2016 12:22 PM
Basically I use the Changed event to save the variable's number, but if the variable doesn't exist it will stop working regardless of the variable coming back later on.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
24 May 2016 12:31 PM
Don't use data persistence.


Report Abuse
StormPegasus4CFC is not online. StormPegasus4CFC
Joined: 18 Jun 2014
Total Posts: 193
24 May 2016 12:34 PM
why?
Report Abuse
StormPegasus4CFC is not online. StormPegasus4CFC
Joined: 18 Jun 2014
Total Posts: 193
24 May 2016 12:34 PM
what should i use if i just want to save small numbers like 0-10 for each player?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
24 May 2016 12:37 PM
Datastores.


Report Abuse
StormPegasus4CFC is not online. StormPegasus4CFC
Joined: 18 Jun 2014
Total Posts: 193
24 May 2016 12:40 PM
ok and i still want to use changed. how do i check if the variable exists with changed?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
24 May 2016 12:51 PM
Don't.


Report Abuse
StormPegasus4CFC is not online. StormPegasus4CFC
Joined: 18 Jun 2014
Total Posts: 193
24 May 2016 12:56 PM
how else can i save the number every time it changes? EVERY SINGLE TIME.
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