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: How do I reference a False Value in an If statement?

Previous Thread :: Next Thread 
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
13 Aug 2013 01:26 AM
if script.Run.Value then

thats for true, but how do i make one for false?
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
13 Aug 2013 01:26 AM
if script.Run.Value == false then
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
13 Aug 2013 01:27 AM
if script.Run.Value == true then

or

if script.Run.Value ~= false then
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
13 Aug 2013 01:30 AM
Hey noah :)

thanks i just forgot what not equals was, it's been a while :S
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
13 Aug 2013 01:33 AM
actually

script.Run.Value ~= false

is the same as

script.Run.Value

lol, I don't think I can reference a False Value, but I think I have what I am trying to do figured out.
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
13 Aug 2013 01:35 AM
~= true
== false
-Derp-
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
13 Aug 2013 01:46 AM
Output for:

If script.Run.Value == false then

Is:

Workspace.Part.Script:3: '=' expected near '=='
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
13 Aug 2013 01:48 AM
if not script.Run.Value
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
13 Aug 2013 01:50 AM
if not script.Run.Value then


attempt to call a nil value
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
13 Aug 2013 02:01 AM
I am an idiot

Soquick, it worked, thank you.
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