|
| 08 Jul 2014 06:47 PM |
How can I get this to move to the left leg? I cant just put a:MoveTo(Script.Parent.Parent.Left Leg) because of the space and what I have bellow doesn't work
a = Game.Lighting.Fire:Clone() a.Parent = game.Workspace leg = script.Parnet.Parent:Findfirstchild "Left Leg" a:MoveTo(Leg.Position) |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 08 Jul 2014 06:51 PM |
um, putting fire inside of the left leg should work
game.Lighting.Fire:clone().Parent = script.Parent.Parent['Left leg'] |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 06:58 PM |
a = Game.Lighting.Fire:Clone() a.Parent = game.Workspace a:MoveTo(script.Parent.Parent.Parent['Left leg'].Position)
doesn't work ;( |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 07:00 PM |
| I just put one tomany parents above but it still doesnt work |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 08 Jul 2014 07:01 PM |
you just have to use one line... game.Lighting.Fire:clone().Parent = script.Parent.Parent['Left leg']
the problem with your script is that you're parenting the fire to workspace and then moving it as if it were a model which doesnt work |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 07:02 PM |
| First off im not trying to change the parent im trying to move its position. Second it is a model |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 07:03 PM |
| Is this a LocalScript inside of a tool?. |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 08 Jul 2014 07:10 PM |
ah, you should have explained that, sorry i wouldn't use MoveTo, i would just use CFrame
a.CFrame = leg.CFrame |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 07:14 PM |
@Above That didn't work... I dont thing CFrame works on models |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 07:18 PM |
local a = Game.Lighting.Fire:Clone() a.Parent = game.Workspace a:MoveTo(script.Parent.Parent['Left leg'].Position)
|
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 07:19 PM |
| The final "Parent" is more then likely the player's Backpack. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 07:20 PM |
| No its the player because the tool is equiped |
|
|
| Report Abuse |
|
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 08 Jul 2014 07:46 PM |
If the tool is equipped, then it should be
script.Parent (Handle).Parent (Tool).Parent (Character) |
|
|
| Report Abuse |
|
|