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: Question about Camera Manipulation.

Previous Thread :: Next Thread 
Paul13379001 is not online. Paul13379001
Joined: 06 Jun 2011
Total Posts: 1384
23 Dec 2012 03:11 PM
I have a few questions about Camera Manipulation.
Would this script work when a player entered the game, and if you died, would the camera manipulation go away...? If not, how would I edit this script to do that?

local target = workspace.CamPart
local camera = workspace.CurrentCamera
camera.CameraSubject = target
local angle = 0

while wait() do
camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, angle, 0)--Rotate by the angle
* CFrame.new(0, 0, 0) angle = angle + math.rad(1)
end

game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
23 Dec 2012 03:11 PM
Test it
Report Abuse
Paul13379001 is not online. Paul13379001
Joined: 06 Jun 2011
Total Posts: 1384
23 Dec 2012 03:17 PM
It didn't lock the camera onto the CamPart, and when I walked around, it just messed up my camera. :/
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