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: Indent

Previous Thread :: Next Thread 
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
22 Oct 2011 10:54 AM
Could someone give me an example on how to indent? :P
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
22 Oct 2011 10:56 AM
You press the tab key...
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
22 Oct 2011 10:57 AM
lol
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
22 Oct 2011 11:01 AM
local Value = 0
function Test()
print("The value is... ".. Value)
Value = Value+1
end
while wait() do
Test()
if Value == 5 then
print("Crashing")
break
else
print("Running")
end
end

Can anyone re-write the code with indenting?
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
22 Oct 2011 11:02 AM
local Value = 0
function Test()
print("The value is... ".. Value)
Value = Value+1
end
while wait() do
Test()
if Value == 5 then
print("Crashing")
break
else
print("Running")
end
end

won't let me tab so i spaced it :P
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
22 Oct 2011 11:02 AM
Tab key (Located above the capital lock key) or if you wanted to tab in a post on the forums, you would use alt+255 (On num pad)

like
  this
    I
      Just
        'tabbed'
            Isn't this awesome?


­<'+1 Post. Ujelly?'>
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
22 Oct 2011 11:03 AM
local Value = 0
function Test()
     print("The value is... ".. Value)
    Value = Value+1
end
while wait() do
     Test()
     if Value == 5 then
         print("Crashing")
         break
     else
         print("Running")
     end
end



­<'+1 Post. Ujelly?'>
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
22 Oct 2011 11:04 AM
XD nates showing off his tabbing skillz.
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
22 Oct 2011 11:04 AM
Thanks :o
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
22 Oct 2011 11:06 AM
local Value = 0
function Test()
        print("The value is... ".. Value)
        Value = Value+1
end
while wait() do
        Test()
        if Value == 5 then
                print("Crashing")
                break
        else
                print("Running")
        end
end

That's if spaces were compared to the amount of spaces that'd make up a tab (That make any sense?)

­<'+1 Post. Ujelly?'>
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
22 Oct 2011 11:15 AM
Yes?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
22 Oct 2011 11:18 AM
^I was talking to myself.

­<'+1 Post. Ujelly?'>
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
22 Oct 2011 11:20 AM
So was I :c
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