Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 22 Apr 2014 02:14 PM |
I made a model and a string value that's representing Models name that is not known in script (PlayernameModel) how do I use string to find model in workspace??
|
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
| |
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
| |
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
| |
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
| |
|
FizBloxx
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 95 |
|
|
| 22 Apr 2014 02:35 PM |
| Check the wiki, i forgot what is it, I think it's called string.find or string.sub or whatever (I know I'm wrong) |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 22 Apr 2014 02:38 PM |
| Wiki is unclear with this one... I still dont know what to do.. |
|
|
| Report Abuse |
|
|
|
| 22 Apr 2014 02:39 PM |
What are you trying to accomplish? Finding a model from workspace that has the name of a value of a string value?
Here's my siggy... Done. |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 22 Apr 2014 02:43 PM |
| Trying to find model that's name starts with Player name so models dont mess up in game... I made String Value thats Value is name of a Model now I want to use that string to find model in workspace... |
|
|
| Report Abuse |
|
|
FizBloxx
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 95 |
|
|
| 22 Apr 2014 02:46 PM |
OH! Ok... do you have like a variable to find the player's name? |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 22 Apr 2014 02:49 PM |
No no no
There's a script that spawns model on Gui click and then it names model with players name and then puts string value as its name... I want to use string in another scripts...
|
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 22 Apr 2014 02:50 PM |
| I mean models name is like (PlayernameMODEL) |
|
|
| Report Abuse |
|
|
FizBloxx
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 95 |
|
|
| 22 Apr 2014 02:50 PM |
| Upload a sample model, I don't really understand. |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
|
| 22 Apr 2014 02:55 PM |
Thats way too complicated...
Here
1st script is in Gui and spawns Model, then adds string value to other script with models name...
2nd script uses string to find path to a model in the workspace |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
| |
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
| |
|
|
| 22 Apr 2014 03:19 PM |
local Model=Workspace:FindFirstChild(StringValue.Value)
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2014 03:20 PM |
You want to get the player?
~masterCameron101, advanced Lua programmer, certified graphics designer and geek~ |
|
|
| Report Abuse |
|
|
Ace23333
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 1341 |
|
| |
|