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: Pls help, reward will be appreciation and happiness :D

Previous Thread :: Next Thread 
marine1357 is not online. marine1357
Joined: 31 Jan 2010
Total Posts: 171
23 Sep 2017 01:30 PM
Is there a way to make a variable be two segments? For example:

local variable1 = boop

So there are two boops, there is a model called "boop" and another model called "boop Model". How do I combine "boop" with a string variable? For example,

local variable2 = (variable1) "Model"
local variable3 = game.Workspace:FindFirstChild(variable2)

So now it will look for a model by the name of "boop Model".
I understand that the script above is an example and maybe completely wrong.
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
23 Sep 2017 01:31 PM
local boop = workspace:FindFirstChild("boop Model")
Report Abuse
BartXXL is not online. BartXXL
Joined: 31 Jan 2013
Total Posts: 100
23 Sep 2017 01:36 PM
local variable1 = "boop"
local variable2 = variable1.." Model"
local variable3 = game.Workspace:FindFirstChild(variable2)
??
Report Abuse
marine1357 is not online. marine1357
Joined: 31 Jan 2010
Total Posts: 171
23 Sep 2017 01:41 PM
It is multiple variables, such as boop1, boop2, boop3 etc, so I wish to go about this as efficiently as possible
Report Abuse
SkippinSweetPine is not online. SkippinSweetPine
Joined: 18 Apr 2011
Total Posts: 122
23 Sep 2017 01:41 PM
local variable1 = "boop"
local variable2 = game.Workspace:FindFirstChild(variable1.." Model")
Report Abuse
BartXXL is not online. BartXXL
Joined: 31 Jan 2013
Total Posts: 100
23 Sep 2017 01:45 PM
local variable1 = { "boop1", "boop2", "boop3", "..." }
local variable2 = variable[3].." Model"
local variable3 = game.Workspace:FindFirstChild(variable2) -> boop3 Model
Report Abuse
BartXXL is not online. BartXXL
Joined: 31 Jan 2013
Total Posts: 100
23 Sep 2017 01:54 PM
sorry not variable[3] but variable1[3]
Report Abuse
marine1357 is not online. marine1357
Joined: 31 Jan 2010
Total Posts: 171
23 Sep 2017 02:08 PM
Thank you so much! You will now receive appreciation and happiness
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