Forest Logo
search
package_2

firstpersondetector

By @coffilhg

Roblox

Mirrored

FirstPersonDetector

Detect whenever the Local Player enters/leaves First Person View:

FirstPersonDetector.OnPersonViewChanged:Connect(function(isInFirstPersonView: boolean)
  print(`You have just {isInFirstPersonView and "entered" or "left"} the First Person View!`)
end)

or read the state anytime

print(`You are currently{FirstPersonDetector.IsInFirstPersonView and "" or " not"} in the First Person View!`)

Available Here!

  • This repository ~ src/init.luau

  • Wally

    FirstPersonDetector = "coffilhg/firstpersondetector@1.0.0"
    
  • Rotriever

    FirstPersonDetector = "github.com/Coffilhg/Useful-Modules@FirstPersonDetector/1.0.0"
    

To-Do

  • Expand the README

DEPENDENCIES


License / License & Attribution

Licensed under the Apache License, Version 2.0.

You may use, modify, and redistribute this module freely, provided that the original copyright notice and license header at the top of the file are preserved.

See the Apache License 2.0 for full terms.

Attribution to all dependencies is included in Notice

© 2026 Coffilhg

Package Details

Install command (Click to copy)


Version

1.0.0

License

Apache-2.0

check_circle

Safe for commercial use

infoModified files must carry a notice of changes. If the package ships a NOTICE file, its attributions must be preserved.

Automated license review — not legal advice.