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: I know I'm doing this wrong.

Previous Thread :: Next Thread 
sniper422 is not online. sniper422
Joined: 10 Jun 2009
Total Posts: 1711
14 Jun 2012 02:25 PM
I'm just trying out new ideas, as I'm rather new at scripting. Can you point out if its just one thing, or if it just can't work?

e = 55
b = e + 5
print(b)

if (b) = 60 then print(Woo!)
Report Abuse
sniper422 is not online. sniper422
Joined: 10 Jun 2009
Total Posts: 1711
14 Jun 2012 02:26 PM
I get an error of Workspace.Brick.Script:5: 'then' expected near '=', in the output.
Report Abuse
CrasyTrex is not online. CrasyTrex
Joined: 13 Mar 2011
Total Posts: 761
14 Jun 2012 02:27 PM
When you are doing that you need to use two == signs. and an end if you forgot one
Report Abuse
sniper422 is not online. sniper422
Joined: 10 Jun 2009
Total Posts: 1711
14 Jun 2012 02:28 PM
Thank you!
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
14 Jun 2012 03:10 PM
Here you go...

e = 55
b = e + 5
print(b)

if (b) == 60 then
print("Woo!")
end

works like a charm!

Diamonds + Sticks = Diamond Stick!
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