|
| 29 Aug 2013 03:56 PM |
I made a tool, it's just a basic part with a gem on top. I have a script with a loop that changes the CFrame of Part0 (the gem) of the weld, but it only spins when the tool is anchored.
Any idea on what to do with it?
|
|
|
| Report Abuse |
|
|
Kuas
|
  |
| Joined: 06 May 2011 |
| Total Posts: 518 |
|
|
| 29 Aug 2013 03:57 PM |
| Are you changing the CFrame of the actual part or the C0/C1 of the weld? |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2013 04:02 PM |
weld = script.Parent.Weld
while true do weld.Part0.CFrame = weld.Part0.CFrame * CFrame.Angles(0,.1,0) wait(.01) end
|
|
|
| Report Abuse |
|
|
Kuas
|
  |
| Joined: 06 May 2011 |
| Total Posts: 518 |
|
|
| 29 Aug 2013 04:04 PM |
That won't work because the weld is holding it in place. You need to change the C0 or C1 of the weld.
weld.C0 = weld.C0* CFrame.Angles(0,.1,0) |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2013 04:06 PM |
| I've done that already, the gem flies in a circle around the shaft instead of rotating. |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 29 Aug 2013 04:07 PM |
Try this instead --
Make a motor.
Set the Part0 to the handle and the Part1 = Gem
Motor.C0 = CFrame.new( )* -- Where ever you want the gem to be at. CFrame.Angles(math.rad(0),math.rad(90),math.rad(0) Motor.C1 = CFrame.new()*CFrame.Angles(0,math.pi/2,0) Motor.DesiredAngle = 9999999999999999931398190359470212947659194368.999 -- Forever and eva Motor.MaxVelocity = 0.15 -- That's how fast an average arm is. |
|
|
| Report Abuse |
|
|
Kuas
|
  |
| Joined: 06 May 2011 |
| Total Posts: 518 |
|
| |
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 29 Aug 2013 04:10 PM |
| C1 isn't important until you use motors. |
|
|
| Report Abuse |
|
|