Lero555
|
  |
| Joined: 22 May 2010 |
| Total Posts: 1017 |
|
|
| 22 Jul 2011 12:49 AM |
| Im new to scripting, and I was wondering if someone could teach me how to make a object appear by using a gear, help is apreciated (btw couldnt find it on the wiki) |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 22 Jul 2011 12:52 AM |
This is how to make an object be created out of nothing.
Instance.new("Part") part.Name = "Your parts name here, it must be in between the quotes" part.Parent = game.Workspace
There are other values you can change to further customise it but this is the very basic. |
|
|
| Report Abuse |
|
|
Lero555
|
  |
| Joined: 22 May 2010 |
| Total Posts: 1017 |
|
|
| 22 Jul 2011 12:54 AM |
| Thanks, ill try this and see if it works well for it |
|
|
| Report Abuse |
|
|
Lero555
|
  |
| Joined: 22 May 2010 |
| Total Posts: 1017 |
|
|
| 22 Jul 2011 12:59 AM |
| Oh wait meant how would I make a model appear using a gear? (Sorry meant model in the first place just forgot to include it there) |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 22 Jul 2011 01:00 AM |
| What do you mean by a model? Like insert a model from free models, clone a pre made model and move it to where you desire or create a brand new one? |
|
|
| Report Abuse |
|
|
Lero555
|
  |
| Joined: 22 May 2010 |
| Total Posts: 1017 |
|
|
| 22 Jul 2011 01:03 AM |
| I have the model, I was asking how to make it to when I use the gear it creates a new model where I clicked |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 22 Jul 2011 01:06 AM |
The code that I can give you would be
model = script.Parent.Model:clone() model.Parent = game.Workspace model:MoveTo(mouse.target)
Just an example. |
|
|
| Report Abuse |
|
|
Lero555
|
  |
| Joined: 22 May 2010 |
| Total Posts: 1017 |
|
|
| 22 Jul 2011 01:20 AM |
| Its the teleport model you want to know about that im trying to turn into a gear that places it, sadly I dont have a clue about scripting, other then how to use the teleport model |
|
|
| Report Abuse |
|
|
Lero555
|
  |
| Joined: 22 May 2010 |
| Total Posts: 1017 |
|
|
| 22 Jul 2011 01:21 AM |
| Btw that didnt work either, i might have typed it wrong, name of the model is Quick-Place Teleporter, can you replace whatever would need to be replaced with the actual name of the model with the name please? |
|
|
| Report Abuse |
|
|