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 » Scripting Helpers
Home Search
 

Re: Bool-values dissapearing

Previous Thread :: Next Thread 
hempants15 is not online. hempants15
Joined: 22 Jul 2011
Total Posts: 153
22 Oct 2014 08:31 AM
In my game I have a BoolValue Inside of a script and that value controls whether the script is InUse or not it works fine in studio but when I test it on a server It shows the error saying that the boolvalue isn't a member of the script so the script malfunctions anyone know what is happening? how can a BoolValue just disappear and no there aren't any "Viruses" in my game.
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
22 Oct 2014 09:07 AM
Check for syntax errors, naming errors or scripts that might be removing that boolvalue.
Or maybe the boolvalue hasn't been created when the script was loaded.
Report Abuse
TeddyBauer is not online. TeddyBauer
Joined: 24 Jul 2014
Total Posts: 224
22 Oct 2014 09:15 AM
if script:child'BoolValueName'then
Boolv=script:child'BoolValueName'
end
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
22 Oct 2014 09:31 AM
Wow. Not to criticize, but that makes the code look ugly, Teddy. At LEAST use better spacing, but I would prefer parentheses over spacing any day.
Report Abuse
hempants15 is not online. hempants15
Joined: 22 Jul 2011
Total Posts: 153
22 Oct 2014 10:04 AM
No, you aren't understanding the BoolValue is in the script BEFORE the script is running Like i inserted it into the script object.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
22 Oct 2014 10:10 AM
Even if it is already in it (Especially from local scripts) the script can sometimes run before its children are loaded
Use :WaitForChild()
Report Abuse
hempants15 is not online. hempants15
Joined: 22 Jul 2011
Total Posts: 153
22 Oct 2014 10:17 AM
Alright, Thanks my Problem is SOLVED *QUEST COMPLETED* DA DAA DA DA DAAAAA
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
22 Oct 2014 01:51 PM
https://www.youtube.com/watch?v=5VRr9NG7RE0
Report Abuse
hempants15 is not online. hempants15
Joined: 22 Jul 2011
Total Posts: 153
25 Oct 2014 07:14 PM
^^^^
YES
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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