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: Inverted controls

Previous Thread :: Next Thread 
superconscript is not online. superconscript
Joined: 15 Mar 2012
Total Posts: 413
07 Dec 2016 06:52 PM
script.Parent.Grip = (CFrame.new(script.Parent.Grip.p,player:GetMouse().Hit.p))
This is a script to move the gun to be pointed where the mouse is aiming. Yet it works correctly except for the part that its inverted. Ex. I move mouse down the gun points upward, How do I fix this or whats causing it.
Report Abuse
superconscript is not online. superconscript
Joined: 15 Mar 2012
Total Posts: 413
07 Dec 2016 07:39 PM
Bump
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
07 Dec 2016 07:46 PM
Invert it by taking the negative of each value.


Report Abuse
superconscript is not online. superconscript
Joined: 15 Mar 2012
Total Posts: 413
07 Dec 2016 07:51 PM
of which value. The mouses Vector3? or the CFrame thats created?
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
07 Dec 2016 10:50 PM
CFrame:inverse() -- is this what you're looking for?


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