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: Camera Manipulation help please

Previous Thread :: Next Thread 
jaredmai is not online. jaredmai
Joined: 08 Sep 2011
Total Posts: 395
05 Mar 2014 09:25 PM
The first part of the script works but after the wait nothing happens.

local cam = workspace.CurrentCamera
local pos = (game.Workspace.IntroScene1.Position-workspace.CurrentCamera.CoordinateFrame.p).unit

function OnClick()
if game.Workspace.PlayerIntro.Value == false then
cam.CameraType = "Scriptable"
cam.CoordinateFrame = CFrame.new(game.Workspace.IntroScene1.Position, game.Workspace.IntroSceneLook1.Position)
wait(19.5)
cam.CameraType = "Custom"
cam.CameraSubject = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid
cam.CoordinateFrame = CFrame.new()
end
end

script.Parent.MouseButton1Click:connect(OnClick)
Report Abuse
jaredmai is not online. jaredmai
Joined: 08 Sep 2011
Total Posts: 395
05 Mar 2014 09:29 PM
bump
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
05 Mar 2014 09:45 PM
Something tells me you should either change the type of camera or be more specific when resetting it.
Report Abuse
jaredmai is not online. jaredmai
Joined: 08 Sep 2011
Total Posts: 395
06 Mar 2014 03:00 PM
Custom is the right type and that is how you return the camera to normal for a player
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