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
 

Help with gun scope

Previous Thread :: Next Thread 
nariox is online. nariox
Joined: 25 Dec 2014
Total Posts: 2649
28 May 2016 09:25 AM
I have a part called "Aimpart" and i want to make it that it does aim how to you make your character view change.
or how to you make a script that when your hold right click it zooms in!
i would appreciate your help
Report Abuse
Notwal is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
28 May 2016 09:39 AM
I suggest you find a gui so that only the center part of the player's screen is visible (like a scope image or something). Then, change the cam's CFrame so it's looking down the barrel. Lastly, decrease the player's FOV by a lot. this will create the 'zoom in' effect.


Report Abuse
nariox is online. nariox
Joined: 25 Dec 2014
Total Posts: 2649
28 May 2016 09:46 AM
Thanks
Report Abuse
nariox is online. nariox
Joined: 25 Dec 2014
Total Posts: 2649
28 May 2016 09:53 AM
Well I need help in the scripting part of how to make the FOV change





Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
28 May 2016 09:59 AM
http://wiki.roblox.com/index.php?title=API:Class/Camera/FieldOfView
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
28 May 2016 10:02 AM
local cam = workspace.CurrentCamera

cam.FieldOfView = 45
Report Abuse
nariox is online. nariox
Joined: 25 Dec 2014
Total Posts: 2649
28 May 2016 10:36 AM
@aggresive

i need it that when you hold right click it goes to 45 FOV and when you let it got it goes back to 70 FOV also it should go to the aim part
Report Abuse
nariox is online. nariox
Joined: 25 Dec 2014
Total Posts: 2649
28 May 2016 10:40 AM
here's the link to the game just to let you know how it is
https://www.roblox.com/games/356226853/narioxs-Place-Number-47
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
28 May 2016 11:43 AM
http://wiki.roblox.com/index.php?title=API:Class/Mouse

http://wiki.roblox.com/index.php?title=API:Class/Mouse/Button2Down

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

http://wiki.roblox.com/index.php?title=API:Class/Camera/FieldOfView
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