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: What is the point of this?

Previous Thread :: Next Thread 
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
20 Oct 2015 12:18 PM
i saw in some code that they had something like this (there was no for loop above it either)

do
print("HI!")
end

when I tested it, it just printed HI! with no difference, so what's the point of doing it?

haven't found documentation of just "do" on the roblox wiki


Never too late to change a life, sir.
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
20 Oct 2015 12:20 PM
local x = 21
do
local x = 20
print(x)--> Prints 20
end
print(x)-->Prints 21

local thignes
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
20 Oct 2015 12:21 PM
alright.

Is there any documentation of it on the wikia anyway?

Never too late to change a life, sir.
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
20 Oct 2015 12:22 PM
Scopes
http://wiki.roblox.com/index.php/Scope
Report Abuse
LightningToaster is not online. LightningToaster
Joined: 17 Sep 2012
Total Posts: 68
20 Oct 2015 12:29 PM
I could use this :)
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