generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Gun that follows the mouse?

Previous Thread :: Next Thread 
phoniex is not online. 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 is not online. 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
HalfCircuit is not online. HalfCircuit
Joined: 20 Apr 2011
Total Posts: 5018
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 is not online. 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 is not online. 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
DesolationGame is not online. DesolationGame
Joined: 03 Jul 2013
Total Posts: 217
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 is not online. 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
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
09 Jan 2015 07:05 PM
@Desolation just explained how to do it, and will most likely work
Report Abuse
phoniex is not online. 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
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image