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: Question.

Previous Thread :: Next Thread 
wuppii is not online. wuppii
Joined: 20 Feb 2010
Total Posts: 1625
26 Oct 2011 11:41 AM
I am making my way into RBLX Lua and I bounced on this: 'i = 1'.
Xould anyone explain what that does/means?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
26 Oct 2011 11:41 AM
[ Content Deleted ]
Report Abuse
wuppii is not online. wuppii
Joined: 20 Feb 2010
Total Posts: 1625
26 Oct 2011 11:42 AM
*Could
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
26 Oct 2011 01:16 PM
it allows you to make correct syntax with [i]
say you have these two codes.

p = game.Workspace:GetChildren()
for i = 1, #p do

that make it so whenever you're referring to any child of workspace, it allows you to use this

p[i]

so you could do

p[i].Name = "Script"
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
26 Oct 2011 01:20 PM
@Venom - Don't help until you have enough experience _to_ help. Seriously, that was a TERRIBLE explanation, and by teaching people that, you're misleading them. kthx.

@OP - It depends on what you mean; your question makes no sense. Do you mean declaring a variable called i, or using a for loop with a variable called i?

-You now have +10 INT from this post. Oh, by the way, Like an __AWESOME__ boss-
Report Abuse
ZizZazZuz is not online. ZizZazZuz
Joined: 16 Jun 2008
Total Posts: 2743
26 Oct 2011 01:21 PM
Either a tag or a table. Ex:

1 = 1
print(i) --Output: 1

for i = 1, 10 do
print([i])
end
--Prints i 10 times. Since it's a table, it returns the number in the table that it is on.
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