Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 07 Dec 2014 01:32 PM |
I really don't want to run a while true do loop. What's the best and most efficient way you know of? |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
KLGA
|
  |
| Joined: 19 Apr 2014 |
| Total Posts: 2571 |
|
|
| 07 Dec 2014 01:35 PM |
cam.CameraType = "Scriptable" cam.CameraSubject = invisiblepart
Not exactly setting it to a CFrame, but it's almost the same thing. |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 07 Dec 2014 01:38 PM |
I should've been more specific.
I do this in my script: camera.CameraType = "Scriptable" camera.CoordinateFrame = game.Workspace:FindFirstChild("Camera_Pos_Init", true).CFrame
It sets the position just fine, but I can move the camera around with the arrow keys and rightclick dragging. The question I should've been asking is if I can disable these or prevent the camera from moving. |
|
|
| Report Abuse |
|
|
Argelius
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 4047 |
|
|
| 07 Dec 2014 01:43 PM |
| You shouldn't be able to move it like that.. Are you deleting the character or something? |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 07 Dec 2014 01:44 PM |
| Yes, I probably should've mentioned that. The character is set to nil because it isn't needed for the game I'm making. |
|
|
| Report Abuse |
|
|
KLGA
|
  |
| Joined: 19 Apr 2014 |
| Total Posts: 2571 |
|
|
| 07 Dec 2014 01:45 PM |
I have an old script where I do something just like that, you can't move the camera around though. Here is what mine looks like:
camera.CameraType = "Scriptable" camera.CoordinateFrame = CFrame.new(Workspace.Looker.Position, Workspace.Target.Position) |
|
|
| Report Abuse |
|
|