|
| 28 Mar 2012 03:26 AM |
When I weld hands for my tool animation they stay welded and the animation is done but they are stuck at the same position if I removed the welds the hands fall and the character stays without hands how can I return the hands to their original position, ? should I clone hands or something ? |
|
|
| Report Abuse |
|
| |
eSvena
|
  |
| Joined: 11 Aug 2011 |
| Total Posts: 75 |
|
|
| 28 Mar 2012 06:15 AM |
connect:
Weld.C1=Your hand Motor6D.C1=nil
disconnect:
Motor6D.C1=Your hand Weld:Remove()
|
|
|
| Report Abuse |
|
|
| 28 Mar 2012 06:35 AM |
I didn't have a Motor6D ..
and nvm I fixed it. |
|
|
| Report Abuse |
|
eSvena
|
  |
| Joined: 11 Aug 2011 |
| Total Posts: 75 |
|
|
| 28 Mar 2012 06:45 AM |
| Motor6D is located in your Torso. That's what Animation use to 'move' your character. |
|
|
| Report Abuse |
|
|
| 28 Mar 2012 06:57 AM |
hmm,,
I used weld :P
so do you actually make animations with Motor6D alone ? or do have to add an Weld to do that ?
if you have to add a weld I already made an animation with weld alone. |
|
|
| Report Abuse |
|
|
| 28 Mar 2012 06:57 AM |
if you wanna check out what I mean. put this script into a hopperbin
-----------------------------------
Player = game.Players.LocalPlayer r=Player.Character:findFirstChild("Right Arm") l=Player.Character:findFirstChild("Left Arm") cR=r:clone() cL=l:clone()
Arm = {cR , cL} deb = false
function Selected(Mouse) cR.Parent,cL.Parent=Player.Character,Player.Character l.Transparency,r.Transparency=1,1 cR.CFrame,cL.CFrame=r.CFrame,l.CFrame cL.Name,cR.Name=l.Name,r.Name cL.BrickColor,cR.BrickColor=l.BrickColor,r.BrickColor l.Name,r.Name="1","2" Weld = {Instance.new("Weld"), Instance.new("Weld")} Weld[1].Parent = Arm[1] Weld[1].Part0 = Weld[1].Parent Weld[1].Part1 = Player.Character.Torso Weld[1].C1 = CFrame.new(1.5,.5,-.5) * CFrame.Angles(math.rad(90),0,0)
Weld[2].Parent = Arm[2] Weld[2].Part0 = Weld[2].Parent Weld[2].Part1 = Player.Character.Torso Weld[2].C1 = CFrame.new(-1.5,.5,-.5) * CFrame.Angles(math.rad(90),0,0) Mouse.Button1Down:connect(function() deb = true if deb then deb = false for i = 0, 1, .05 do wait() Weld[1].C1 = CFrame.new(1.5 + i/2,.5,-.5 + i/2) * CFrame.Angles(math.rad(90),0,math.rad(90) * i) Weld[2].C1 = CFrame.new((-1.5) - i/2,.5,-.5 + i/2) * CFrame.Angles(math.rad(90),0,math.rad(90) * -i) end wait(0.1) for i = 1, 0, -.05 do wait() Weld[1].C1 = CFrame.new(1.5 + i/2,.5,-.5 + i/2) * CFrame.Angles(math.rad(90),0,math.rad(90) * i) Weld[2].C1 = CFrame.new((-1.5) - i/2,.5,-.5 + i/2) * CFrame.Angles(math.rad(90),0,math.rad(90) * -i) end deb = true end end) end
script.Parent.Selected:connect(Selected)
script.Parent.Deselected:connect(function() cR.Parent,cL.Parent=nil,nil l.Transparency,r.Transparency=0,0 l.Name,r.Name=cL.Name,cR.Name end) |
|
|
| Report Abuse |
|
3lex33
|
  |
| Joined: 08 Oct 2008 |
| Total Posts: 5220 |
|
|
| 28 Mar 2012 07:03 AM |
| Use motor6d every time you work with character, because Motor6D are originally in it. Welds force something to do something. Did not you notice in games, how sometimes after equipping tool arms just fall off. Thats weld result. Motor6d might be harder to use, but it is worth it. If i will get mine terminated account back, i can give you example of arms motord6d weld script. Lastly, if you save original motor6d before creating new one for arms and after put it back, everything will be back, like it was not edited at all. |
|
|
| Report Abuse |
|
|
| 03 Apr 2013 06:19 PM |
| Can you give me an example of motor6d? im trying to animate a hatchet that I made for a apoc. survival project im working on. just show me a script for a sword and then how it makes the sword move. I hope thats not too much to ask for. |
|
|
| Report Abuse |
|