phoniex
|
  |
| Joined: 03 Feb 2008 |
| Total Posts: 34985 |
|
|
| 27 Dec 2014 09:46 AM |
Most of ROBLOX's modern FPS games such as Base Wars: The Land and Mad Paintball have the gun follow the mouse. When the player looks up, the gun looks up. When the player looks down, the gun looks down and so on.
How do I program this?
~Rock is dead. Long live paper and scissors!~ |
|
|
| Report Abuse |
|
|
phoniex
|
  |
| Joined: 03 Feb 2008 |
| Total Posts: 34985 |
|
|
| 27 Dec 2014 06:21 PM |
BUMP
~Rock is dead. Long live paper and scissors!~ |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2014 06:38 PM |
A)Script, not program. B)If you dont know how to do this, how did you get an operating gun in the first place? |
|
|
| Report Abuse |
|
|
phoniex
|
  |
| Joined: 03 Feb 2008 |
| Total Posts: 34985 |
|
|
| 27 Dec 2014 06:41 PM |
@Half
A) What? B) I think you misunderstand what I mean. I'm talking about the gun moving up and down when the player looks up and down. Older weapons don't have this function.
~Rock is dead. Long live paper and scissors!~ |
|
|
| Report Abuse |
|
|
phoniex
|
  |
| Joined: 03 Feb 2008 |
| Total Posts: 34985 |
|
|
| 01 Jan 2015 12:51 PM |
Bump...
~Rock is dead. Long live paper and scissors!~ |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2015 01:00 PM |
| I've never done this myself, but theoretically you could use lookvector and mouse.Moved event to get this done. Theoretically. |
|
|
| Report Abuse |
|
|
phoniex
|
  |
| Joined: 03 Feb 2008 |
| Total Posts: 34985 |
|
|
| 09 Jan 2015 06:54 PM |
BUMP
~Rock is dead. Long live paper and scissors!~ |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2015 07:05 PM |
| @Desolation just explained how to do it, and will most likely work |
|
|
| Report Abuse |
|
|
phoniex
|
  |
| Joined: 03 Feb 2008 |
| Total Posts: 34985 |
|
|
| 09 Jan 2015 07:09 PM |
@Kiwi
I don't really understand his answer. I'm not a master scripter, so I didn't understand anything.
~Rock is dead. Long live paper and scissors!~ |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2015 07:14 PM |
http://wiki.roblox.com/index.php?title=CFrame#Properties http://wiki.roblox.com/index.php?title=API:Class/Mouse |
|
|
| Report Abuse |
|
|
phoniex
|
  |
| Joined: 03 Feb 2008 |
| Total Posts: 34985 |
|
|
| 09 Jan 2015 07:18 PM |
@Kiwi
I'll check those articles out. Thank you for not mocking my lack of scripting knowledge.
~Rock is dead. Long live paper and scissors!~ |
|
|
| Report Abuse |
|
|