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: Learning how to play with camera manipulation

Previous Thread :: Next Thread 
TruthInTheHeart is not online. TruthInTheHeart
Joined: 25 Jul 2015
Total Posts: 16
02 Sep 2015 07:31 PM
So i'm trying to make a gun that aims down the sights. So I need the camera to be behind the back sight.

After looking at the wiki I figured I could do this

local cam = game.Workspace.CurrentCamera
cam.CameraType = "Attach"
cam.CameraSubject = script.Parent["Flip Sight"].Ring
cam.Focus = CFrame.new(0,0,0) * CFrame.Angles(180,0,0)


I hoped it would put the camera directly on the sight but instead the camera is far.
And the rotation is always weird. What can I do?
Report Abuse
UnknownScriptSource is not online. UnknownScriptSource
Joined: 30 Aug 2015
Total Posts: 101
02 Sep 2015 07:31 PM
why dont you just move the gun?


I dont use signatures.
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
02 Sep 2015 07:44 PM
Yeah, it would be wayyyyy easier if you just edited GripPos and GripRight
Report Abuse
TruthInTheHeart is not online. TruthInTheHeart
Joined: 25 Jul 2015
Total Posts: 16
02 Sep 2015 07:47 PM
Because I want the guns sight to be over the face decals eye. But the camera is in the middle of the head, so it wouldn't look down the sights.
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
02 Sep 2015 07:51 PM
Oh, I see, you can make a Decal version of your gun's ADS then when you do ADS you can put the decal near your eye.
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