Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
|
| 06 Jan 2013 01:27 PM |
I need to make the camera so that it cant move at all. I've seen it done but how? |
|
|
| Report Abuse |
|
|
|
| 06 Jan 2013 01:29 PM |
local camera = workspace.CurrentCamera
camera.CameraSubject = workspace.Part camera.CameraType = 6 -- "Scriptable"
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 06 Jan 2013 01:30 PM |
| player.CameraType = "Scriptable" |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
|
| 06 Jan 2013 01:57 PM |
| when I try to do that it glitches |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 06 Jan 2013 01:59 PM |
| Then there's something else interfering with the camera. |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
| |
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 06 Jan 2013 02:07 PM |
| It means you have another script messing with the camera. |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
|
| 06 Jan 2013 02:19 PM |
I don't think so here's the script
local cam = workspace.CurrentCamera
while wait() do cam.CameraSubject = game.Workspace.NarwhaleHead cam.Focus = CFrame.new(-4922, 7.978, -13) cam.CoordinateFrame=CFrame.new(-4934, 5, -14) cam.CameraType = "Scriptable" break end
|
|
|
| Report Abuse |
|
|
|
| 06 Jan 2013 02:20 PM |
| First off there is not reason for the while loop if your just gonna break it after one run... |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
| |
|
|
| 06 Jan 2013 02:23 PM |
just do this if you only want it to run once...
local cam = workspace.CurrentCamera wait() cam.CameraSubject = game.Workspace.NarwhaleHead cam.Focus = CFrame.new(-4922, 7.978, -13) cam.CoordinateFrame=CFrame.new(-4934, 5, -14) cam.CameraType = "Scriptable"
|
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
|
| 06 Jan 2013 02:27 PM |
| ok but that doesn't fix the problem... |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 06 Jan 2013 03:07 PM |
| To mess with the player's camera, you need a localscript. That may be a reason why it's 'bugging'. |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
| |
|
|
| 06 Jan 2013 03:18 PM |
local cam = workspace.CurrentCamera cam.CameraType = "Scriptable" wait() cam.CameraSubject = game.Workspace.NarwhaleHead cam.Focus = CFrame.new(-4922, 7.978, -13) cam.CoordinateFrame=CFrame.new(-4934, 5, -14)
change the CameraType first.
¬ LuaLearners Elite/Writer |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 06 Jan 2013 03:23 PM |
| ....Scriptable camera doesn't have focus... Well it's there, but it doesn't do stuff. Just rotate CoordinateFrame. |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
|
| 06 Jan 2013 03:38 PM |
| then how to I set where it faces? |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
| |
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
| |
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 06 Jan 2013 04:33 PM |
Camera.CoordinateFrame = Workspace.ViewingPart.CFrame*CFrame.new(0,2,-5) -- 0,2,-5 is the offset. |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
|
| 06 Jan 2013 04:43 PM |
local cam = workspace.CurrentCamera wait() cam.CameraSubject = game.Workspace.NarwhaleHead Camera.CoordinateFrame = Workspace.ViewingPart.CFrame*CFrame.new(0,2,-5) cam.CoordinateFrame=CFrame.new(-4934, 5, -14) cam.CameraType = "Scriptable"
didn't work... |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 06 Jan 2013 04:48 PM |
Well first of all, you're using Camera, when you named your variable cam. Second, do you have a part in Workspace named ViewingPart? |
|
|
| Report Abuse |
|
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
| |
|
Remynfv
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 587 |
|
| |
|