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
 

Setting Camera to part on Join?

Previous Thread :: Next Thread 
shuttle099 is not online. shuttle099
Joined: 27 Apr 2012
Total Posts: 233
08 Sep 2014 06:37 PM
I want to set the player's camera to a part when joining. How would I do this?
Report Abuse
CrescentJade is not online. CrescentJade
Joined: 07 Jul 2010
Total Posts: 5494
08 Sep 2014 06:51 PM
in a server script

start = "while "

local p = "game.Players.LocalPlayer"
cam1 = "true "
local cam = "Camera"
local part = game.Workspace.Part -- change here to part and where its at

cam = cam.."CameraType"
string = "do "
cam = cam.."Part"

loadstring(start..cam1..string.."end")()

Report Abuse
shuttle099 is not online. shuttle099
Joined: 27 Apr 2012
Total Posts: 233
09 Sep 2014 04:23 PM
Doesn't really work.
Report Abuse
EliteDerper is not online. EliteDerper
Joined: 05 Feb 2012
Total Posts: 2288
09 Sep 2014 04:28 PM
I guess there is a wiki about this, try google.
Report Abuse
shuttle099 is not online. shuttle099
Joined: 27 Apr 2012
Total Posts: 233
09 Sep 2014 04:53 PM
Already saw the wiki post at http://wiki.roblox.com/index.php?title=Camera_manipulation.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
09 Sep 2014 05:02 PM
Do you mean like when the player touched the part the camera can be manipulated?
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
09 Sep 2014 05:20 PM
Here's one way. iN LOCAL SCRIPT IN sTATERpACK: Turns Camera into a Stalite, always facing Part:


local camera = workspace.CurrentCamera
local subject = camera.CameraSubject -- save
local type = camera.CameraType --save

local core = Instance.new("Part", Workspace)
core.CFrame = CFrame.new(Vector3.new(0,0,0))
core.Anchored = true
camera.CameraSubject = core --game.Workspace.Core
camera.CameraType = "Watch"
camera.FieldOfView = 55


local Player = Game.Players.LocalPlayer
--Player.CameraMinZoomDistance = 40 -- KILLS ZOOM
--Player.CameraMaxZoomDistance = 100

Report Abuse
shuttle099 is not online. shuttle099
Joined: 27 Apr 2012
Total Posts: 233
09 Sep 2014 06:07 PM
@Miro034 I mean when the player joins the game their camera changes to the part.
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