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: Can you use concatenation this way?

Previous Thread :: Next Thread 
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
02 Jan 2013 09:31 AM
function parentMap(no)
local a = game.Lighting:findFirstChild("Map"..no):Clone() -- THIS LINE
a.Parent = game.Workspace
end


while wait(15) do
i = i + 1
if i >= 6 then
i = 1
end
parentMap(i)
end


These are a few parts taken out of my script,
can you use concatenation for the :findFirstChild(), and is there a more efficient way?
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Jan 2013 09:38 AM
Yes you can.
Report Abuse
Luc599345 is not online. Luc599345
Joined: 25 Jul 2008
Total Posts: 1169
02 Jan 2013 09:43 AM
Go to Scripting Helpers next time, we don't want to see your scripts.
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
02 Jan 2013 09:45 AM
Shut up troll, everyone is interested in my scripts.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
02 Jan 2013 09:50 AM
There is no time you have a string that you can't concatenate.
Report Abuse
Luc599345 is not online. Luc599345
Joined: 25 Jul 2008
Total Posts: 1169
02 Jan 2013 10:06 AM
>Troll
I'd like to point out that this forum is _NOT_ for help requests. There is a specific subforum for this kind of topic, aka Scripting Helpers. I am no troll, I'm just pointing out what you should do next time.
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
02 Jan 2013 10:07 AM
uhm. i think you need more ends wouldnt it be like
print(a..b end end end end end)
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
02 Jan 2013 10:08 AM
Do you think anyone on the scripting helpers would even know what concatenation means? hmmm?
Report Abuse
angelinafm is not online. angelinafm
Joined: 10 Apr 2011
Total Posts: 134
02 Jan 2013 10:14 AM
I'm from SH and I know what it means. Stop thinking SH is so lowly. There are some amazing scripters who post there.
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
02 Jan 2013 10:24 AM
http://www.roblox.com/Forum/ShowPost.aspx?PostID=85994498
Like I said, they don't know.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
02 Jan 2013 10:27 AM
> Like I said, they don't know.

1) Zars gave you the answer in that thread
2) This is a completely different question than that
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
02 Jan 2013 10:32 AM
To be honest, it was simpler
I was asking them the definition of concatenation, and my first answer was incorrect. My work would have been for nothing.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
02 Jan 2013 10:39 AM
Definition would be something like:


"Concatening - Connecting two strings into one string"
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
02 Jan 2013 10:57 AM
I have a better idea. How about you try the script in whatever you are doing? Or if you can't, make a quick command bar demo with variables of the same type.

I don't post every script I make on this forum and ask everybody if it will work. It just seems blindingly obvious to me to actually test it instead of asking people who have no idea about it if it works.
Report Abuse
Luc599345 is not online. Luc599345
Joined: 25 Jul 2008
Total Posts: 1169
02 Jan 2013 11:03 AM
MrChickens, people from Scripters do make trips to SH, this just isn't the right place. Just look for concatenation in ROBLOX's wiki next time, or just the legit Lua's website.
Report Abuse
129K is not online. 129K
Joined: 23 Aug 2011
Total Posts: 19010
02 Jan 2013 08:26 PM
Yeah, and instead of posting this useless thread, you could of tested it yourself. But no! You chose to post it here because you wanted to "show off."
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
02 Jan 2013 08:30 PM
Showing off my inability to script?
If anything, it was embarrassing not to know that you could concatenate in this way. It is impossible to test certain scripts as they only work online.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
02 Jan 2013 08:31 PM
Hey OP.

1. "Female Forumers." Does gender matter?
2. I heard there was a thing called wiki.roblox.com.

- thedestroyer115
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
02 Jan 2013 08:42 PM
@destroyer115

what does her being part of the 'Female Forumers' group have to do with _anything_?

¬ LuaLearners Elite/Writer
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
02 Jan 2013 08:43 PM
Nothing. I just noticed.

- thedestroyer115
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
03 Jan 2013 04:37 PM
It's funny that Tenal's in that group but it won't directly state its gender.

Anyway, on-topic: MrChickens, why don't you just press the "start simulation" button or use the command bar to answer your own question?
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
03 Jan 2013 04:37 PM
no need to bump this thread :|

¬ LuaLearners Elite/Writer
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
03 Jan 2013 04:38 PM
@SN0X. I've made sure that tenal is she.
Report Abuse
Valeyard is not online. Valeyard
Joined: 01 Jan 2013
Total Posts: 20
03 Jan 2013 04:43 PM
Tenal has done live-streaming multiple times. Tenal is male unless the voice is being disguised.
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
03 Jan 2013 04:50 PM
Why do we even discuss such petty matters?
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