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
|
  |
| 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
|
  |
| Joined: 25 Dec 2014 |
| Total Posts: 2649 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 28 May 2016 10:02 AM |
local cam = workspace.CurrentCamera
cam.FieldOfView = 45 |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|