|
| 28 Jul 2012 07:10 PM |
Thanks for the help! This script works fine but it has a few glitches:
script.Parent.Parent.Equipped:connect(function (mouse) mouse.Move:connect(function () local t = script.Parent.Parent.Parent.Torso; t.CFrame = CFrame.new(t.Position, mouse.Hit.p); end); end);
And becasue of these glitches, I'm wondering how you would change it from the torso following, to the arms folowing the mouse? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 28 Jul 2012 08:40 PM |
| Debating whether to help or not cause I'm not Droid... |
|
|
| Report Abuse |
|
|
| |
|
| |
|
DXPower
|
  |
| Joined: 21 Oct 2008 |
| Total Posts: 2866 |
|
|
| 28 Jul 2012 10:27 PM |
1. Make sure that they are in first person for this to work best.
handle.CFrame.lookVector = t.CFrame.lookVector
That will set the direction of the handle inside the tool to the direction of the torso. Make sure you define handle, though. ;)
Time to update this siggy, to this: ! |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2012 12:39 PM |
| How would I put this in the script? |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2012 12:40 PM |
| WHy am I seeing a bunch of Forums named "dro1d3k4" This Morning? |
|
|
| Report Abuse |
|
|
robotmega
|
  |
| Joined: 16 May 2009 |
| Total Posts: 14084 |
|
|
| 29 Jul 2012 12:42 PM |
Simple.
script.Parent.Parent.Equipped:connect(function (mouse) mouse.Move:connect(function () local t = script.Parent.Parent.Parent["Left Arm"]; local t2 = script.Parent.Parent.Parent["Right Arm"]; t.CFrame = CFrame.new(t.Position, mouse.Hit.p); t2.CFrame = CFrame.new(t2.Position, mouse.Hit.p); end); end); |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2012 12:49 PM |
@robotmega
your script didn't work. |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2012 12:51 PM |
@DX
SO it would be llike this:
script.Parent.Parent.Equipped:connect(function (mouse) mouse.Move:connect(function () local t = script.Parent.Parent.Parent.Torso; local handle = script.Parent.Parent.Handle handle.CFrame.lookVector = t.CFrame.lookVector t.CFrame = CFrame.new(t.Position, mouse.Hit.p); end); end); |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2012 12:58 PM |
script.Parent.Parent.Equipped:connect(function(mouse) mouse.Move:connect(function() local t = script.Parent.Parent.Parent.Torso; local handle = script.Parent.Parent.Handle handle.CFrame.lookVector = t.CFrame.lookVector t.CFrame = CFrame.new(t.Position, mouse.Hit.p); end); end);
No space after function in your anonymous functions. |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2012 02:12 PM |
| It doesn't work for some resaon:( |
|
|
| Report Abuse |
|
|
DXPower
|
  |
| Joined: 21 Oct 2008 |
| Total Posts: 2866 |
|
|
| 29 Jul 2012 02:18 PM |
Try removing the third to last line, and also make sure your in First-Person mode!
Time to update this siggy, to this: ! |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2012 02:30 PM |
Wah! Still doesn't work..Llemme try outpout..
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 29 Jul 2012 03:38 PM |
Then you are doing something that's messing it up.
------------------------- ~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2012 03:51 PM |
Is this in a Tool or HopperBin?
------------------------- ~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~ |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2012 03:52 PM |
| Gun Tool inside the shooter script |
|
|
| Report Abuse |
|
|
| |
|