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 » Scripting Helpers
Home Search
 

Re: Move to left leg

Previous Thread :: Next Thread 
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
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 is not online. 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
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
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
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
08 Jul 2014 07:00 PM
I just put one tomany parents above but it still doesnt work
Report Abuse
Absurdism is not online. 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
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
08 Jul 2014 07:03 PM
Is this a LocalScript inside of a tool?.
Report Abuse
Absurdism is not online. 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
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
08 Jul 2014 07:14 PM
@Above That didn't work... I dont thing CFrame works on models
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
08 Jul 2014 07:19 PM
The final "Parent" is more then likely the player's Backpack.
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
08 Jul 2014 07:20 PM
No its the player because the tool is equiped
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
08 Jul 2014 07:45 PM
bump
Report Abuse
maxomega3 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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