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: Detecting if the player is fully zoomed/in first person?

Previous Thread :: Next Thread 
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
20 Aug 2015 10:51 PM
i forgot how, sorry

if anyone could point me in the right direction, that would be great
Report Abuse
71428 is not online. 71428
Joined: 06 Aug 2015
Total Posts: 339
20 Aug 2015 11:25 PM
This was my way of doing it:
local cameraMag = math.abs((camera.CoordinateFrame.p - player.Head.Position).Magnitude)
if cameraMag <= 3 and cameraMag >= 0 then
--First person
end

I think there is a better way but I don't know
Report Abuse
FallenTacoz is not online. FallenTacoz
Joined: 05 Aug 2013
Total Posts: 328
21 Aug 2015 01:00 AM
you could just make it so they can't zoom out in the first place
you can go to players and adjust the zoom settings
or do it in a script if it's an automatic game with rounds and stuff

~Hail FallenTacoz~
Report Abuse
Hvxbyte is not online. Hvxbyte
Joined: 19 Aug 2015
Total Posts: 410
21 Aug 2015 01:51 AM
local Distance = game.Workspace.CurrentCamera.CoordinateFrame - game.Players.LocalPlayer.Character.Head.Position).magnitude

print(Distance)
Report Abuse
chimmmihc is not online. chimmmihc
Joined: 24 Jul 2014
Total Posts: 2420
21 Aug 2015 01:54 AM
luv u insta

http://wiki.roblox.com/index.php?title=API:Class/Camera/FieldOfView
Report Abuse
76km is not online. 76km
Joined: 14 Aug 2015
Total Posts: 5455
21 Aug 2015 02:07 AM
fallen that wasn't what he asked for

chimmihc[2] ^ said the correct statement.
Report Abuse
chimmmihc is not online. chimmmihc
Joined: 24 Jul 2014
Total Posts: 2420
21 Aug 2015 02:12 AM
I'm always the correct statement, use me if you ever need to break some ice.
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