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: Automatic zoom in?

Previous Thread :: Next Thread 
Draekin is not online. Draekin
Joined: 25 Jan 2012
Total Posts: 208
15 May 2017 11:55 PM
So, I've made an ADS (Aim Down Sight) function then when the player right clicks, it goes to ADS position, and I made it so that it can only work when in first person.

Now what I want to do next is make the character to go automatically to first person when the player is outside first person and the player right clicks. How do you do this? I'm new to camera manipulation and I don't know what function is used to achieve that.

Thanks!
Report Abuse
Weirdraidercs35 is online. Weirdraidercs35
Joined: 14 May 2015
Total Posts: 2275
16 May 2017 12:01 AM
its a property of the player

first personlocked


im a mlg
Report Abuse
Draekin is not online. Draekin
Joined: 25 Jan 2012
Total Posts: 208
16 May 2017 12:04 AM
Oh, thanks! I didn't notice that.
So I'll just have to add a loop function so that it keeps zooming in until first person.

Thanks again.
Report Abuse
Weirdraidercs35 is online. Weirdraidercs35
Joined: 14 May 2015
Total Posts: 2275
16 May 2017 12:05 AM
lol wot

just set it to true when aimed in

false when right mouse released


im a mlg
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
16 May 2017 03:30 AM
What's the use of that?
CameraMode = "LockFirstPerson"


R$30,911 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
16 May 2017 03:50 AM
u can look at TurboFusion guns

the gun kit has ADS and the guns are made specifically to learn from

https://www.roblox.com/library/185490628/Gun-Kit-v0-0-3-V4-in-progress


Report Abuse
Weirdraidercs35 is online. Weirdraidercs35
Joined: 14 May 2015
Total Posts: 2275
16 May 2017 08:04 PM
ur beter off startin fom scratch


im a mlg
Report Abuse
Draekin is not online. Draekin
Joined: 25 Jan 2012
Total Posts: 208
16 May 2017 11:40 PM
Well, what I wanted to do was add an effect that would seem like you're transitioning from third person to first person. I don't want it to instantly to shift to first person.
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
17 May 2017 06:49 PM
that's exactly why i gave you the link to the TurboFusion kit

it has a zoom-in/zoom-out transition between 3rd and 1st person

just look at the script


Report Abuse
reddarkness321 is not online. reddarkness321
Joined: 07 May 2016
Total Posts: 44
17 May 2017 09:04 PM
This is actually fairly simple. Simply do:
game.Players.LocalPlayer.CameraMode = LockFirstPerson
This is for when your player is aiming down the sights. When the player is exiting the sights do:
game.Players.LocalPlayer.CameraMode = Classic
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
17 May 2017 09:23 PM
^^
that guy didn't read the post


Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
18 May 2017 03:56 AM
Ok, try changing the POV of the camera for the effect?

Like zoom in a lot then go first person



R$0 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
CyansAstronomy is not online. CyansAstronomy
Joined: 25 Feb 2016
Total Posts: 2534
18 May 2017 03:57 AM
Ok, try changing the POV of the camera for the effect?

Like zoom in a lot then go first person



R$0 | aka CyanSparkleTime \ Evercyan \ Sparklexity


R$0 | aka CyanSparkleTime \ Evercyan \ Sparklexity
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