|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 09 Sep 2014 04:28 PM |
| I guess there is a wiki about this, try google. |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2014 04:53 PM |
| Already saw the wiki post at http://wiki.roblox.com/index.php?title=Camera_manipulation. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 09 Sep 2014 06:07 PM |
| @Miro034 I mean when the player joins the game their camera changes to the part. |
|
|
| Report Abuse |
|
|