|
| 22 Mar 2014 01:19 PM |
So basically, I'm trying to make a gun. The arms need to move up and down with the mouse. Only up and down. I bought a script, but it isn't working properly. Could someone explain how to do this? I'm guessing it would be in a Local Script:
mouse = game.Players.LocalPlayer:GetMouse()
mouse.Move:connect(function() arm.Position? end)
I'm just stumped. I may post parts of the script I bought if needed, |
|
|
| Report Abuse |
|
|
| |
|
| |
|
coplox
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 3252 |
|
|
| 22 Mar 2014 01:26 PM |
"I bought a script"
I do not wish to assist you. |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
| |
|
makerror
|
  |
| Joined: 29 Aug 2011 |
| Total Posts: 493 |
|
|
| 22 Mar 2014 01:41 PM |
| http://wiki.roblox.com/index.php?title=CFrame |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 01:45 PM |
| @Cop; the only reason I bought it was because I couldn't figure it out. And I knew you guys wouldn't give a full script. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 01:46 PM |
| @Make; I've read that like 50 times. It tells me about everything but how to use it with a mouse. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 01:49 PM |
| Can someone tell how to do it with the mouse? |
|
|
| Report Abuse |
|
|
KingJacko
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 3944 |
|
|
| 22 Mar 2014 01:54 PM |
| mouse.hit.p or something like that |
|
|
| Report Abuse |
|
|
UnStunned
|
  |
| Joined: 14 Jun 2012 |
| Total Posts: 122 |
|
|
| 22 Mar 2014 01:55 PM |
| Dunno really,you should see youtube... |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2014 03:58 PM |
Like this?
plr = game.Players.LocalPlayer m = plr:GetMouse()
m.Moved:connect(function() plr.Character["Right Arm"].CFrame = CFrame.Angles(0,m.Position.Y,0) plr.Character["Left Arm"].CFrame = CFrame.Angles(0,m.Position.Y,0) end) |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
| |
|
| |
|