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 » Scripting Helpers
Home Search
 

Re: How to access the a player's camera?

Previous Thread :: Next Thread 
noobertuber is not online. noobertuber
Joined: 16 Jan 2007
Total Posts: 2321
05 Nov 2011 03:16 PM
The question is, how does one determine the position of the player's camera? Thank you for your time.

Sincerely,
Noobertuber
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
05 Nov 2011 03:17 PM
With a LocalScript in the player's PlayerGui or Character,

workspace.CurrentCamera
Report Abuse
pokelord910 is not online. pokelord910
Joined: 26 May 2009
Total Posts: 1045
05 Nov 2011 03:22 PM
(^^^^^^^^^) It's a shark
Report Abuse
Ganondude is not online. Ganondude
Joined: 22 Jun 2007
Total Posts: 1175
05 Nov 2011 03:25 PM
Keep in mind that the camera object doesn't have a Position property, you'll have to use it's CFrame.

--
local cameraPos = camera.CoordinateFrame.p
--
Report Abuse
lucas301 is not online. lucas301
Joined: 28 Dec 2008
Total Posts: 1307
05 Nov 2011 03:29 PM
Type in RBX.lua.Camera its useful!
Report Abuse
lucas301 is not online. lucas301
Joined: 28 Dec 2008
Total Posts: 1307
05 Nov 2011 03:30 PM
In your search bar*
Report Abuse
noobertuber is not online. noobertuber
Joined: 16 Jan 2007
Total Posts: 2321
05 Nov 2011 03:33 PM
Thank you for your quick and accurate reply. It seems to have worked.

Sincerely,
Noobertuber
Report Abuse
deividaxas is not online. deividaxas
Joined: 20 Feb 2009
Total Posts: 1054
05 Nov 2011 03:48 PM
Workspace.CurrentCamera.CoordinateFrame=CFrame.new(0,0,0)

-- +1 post ?Problem? ^^ --
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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