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 » Scripters
Home Search
 

Re: How to create "recoil" for a gun using the camera?

Previous Thread :: Next Thread 
InfiniteYield is online. InfiniteYield
Joined: 01 Mar 2012
Total Posts: 762
31 Jul 2016 01:17 AM
Im not sure how, can someone please explain? I want the camera to go slightly upwards, it is a 3rd person game.


Report Abuse
pyth_n is not online. pyth_n
Joined: 21 Jun 2016
Total Posts: 1322
31 Jul 2016 01:18 AM
if u can't do this, pick a simpler project

look at the cframe constructors.
Report Abuse
InfiniteYield is online. InfiniteYield
Joined: 01 Mar 2012
Total Posts: 762
31 Jul 2016 01:35 AM
gee, its not like i already attempted using the y axis/constructor of the coordinate frame, yet to have it fail.


Report Abuse
SadisticNub is not online. SadisticNub
Joined: 05 Jan 2013
Total Posts: 4948
31 Jul 2016 04:08 AM
camera.CFrame = camera.CFrame * CFrame.Angles(math.rad(deg x), math.rad(deg y), math.rad(deg z))

If you want realistic recoil, you should interpolate it and also make it 'bounce back'.
Report Abuse
Niveum is not online. Niveum
Joined: 15 Aug 2009
Total Posts: 3437
31 Jul 2016 04:09 AM
This might be of interest for you

http://wiki.roblox.com/index.php?title=Springs


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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