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 » Scripting Helpers
Home Search
 

Re: How do I make an fps gun?

Previous Thread :: Next Thread 
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
23 Nov 2013 10:01 PM
I noticed in some games, the creator scripted their guns so that the guns and the arm follow the camera so that when you point up, the gun actually points up and when you down the gun points down instead of the default action where the gun only follows the camera from left to right.

I wanna know how they do this. Maybe a link to a gun that does this in catalog. I want to study this in depth.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
23 Nov 2013 10:34 PM
oui?
Report Abuse
REM25 is online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
23 Nov 2013 10:37 PM
Welding :D
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
24 Nov 2013 11:47 AM
Well I think that's absolutely obvious, but that's not what I meant. I'm talking about the code.

The fact that the camera is an instance and not an actual physical part makes me hesitant to experiment with it.
Report Abuse
Jeffe32 is not online. Jeffe32
Joined: 30 Mar 2012
Total Posts: 1616
24 Nov 2013 11:55 AM
Make it so the arms go up and the gun just goes along with it.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
24 Nov 2013 12:33 PM
A. Using the origin property's of the mouse.

B. Using a right angle for (?)

C unit vector
Report Abuse
Likewatusee is not online. Likewatusee
Joined: 11 Apr 2012
Total Posts: 25
24 Nov 2013 12:34 PM
Take one of pinkybelt's guns. Study the scripts that make the arms move up and down.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
25 Nov 2013 11:25 AM
took me a while to actually find pinkybelt, since that name didnt seem to pop up in People.

I found the HK. I'm going to go ahead and use it temporarily as the gun for the game until I can actually study such a massively scripted weapon.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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