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: Camera back to player

Previous Thread :: Next Thread 
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
19 Oct 2015 09:32 PM
I have a script where the camera is circling around a object, and a button appears. When they click the button, I want the camera go back to normal, (Viewing the player). Any help?
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
20 Oct 2015 06:24 PM
b
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
20 Oct 2015 06:27 PM

Set the camera from scriptable to the default.
Set the camera's subject to the player
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
20 Oct 2015 06:45 PM
There is no "Defualt"?
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
20 Oct 2015 06:47 PM
This didnt work, what do I do?

function Click()
local camera = workspace.CurrentCamera
camera.CameraSubject = game.Players.LocalPLayer
end

script.Parent.MouseButton1Click:connect(Click)
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
20 Oct 2015 07:01 PM
b2
Report Abuse
ihatemagpie is not online. ihatemagpie
Joined: 26 Jun 2015
Total Posts: 9
20 Oct 2015 07:03 PM
function Click()
local camera = workspace.CurrentCamera
camera.CameraSubject = game.Players.LocalPlayer
end

script.Parent.MouseButton1Click:connect(Click)

You wrote "LocalPLayer"
Its actually "LocalPlayer"
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
20 Oct 2015 07:06 PM
Still not working, I think its because of my other camera script, which circles around someting for the intro.
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