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
 

Re: How do you do this?

Previous Thread :: Next Thread 
Remynfv is not online. 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
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
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 is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
06 Jan 2013 01:30 PM
player.CameraType = "Scriptable"
Report Abuse
Remynfv is not online. 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 is not online. 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 is not online. Remynfv
Joined: 02 Dec 2011
Total Posts: 587
06 Jan 2013 02:00 PM
and that means?
Report Abuse
1Topcop is not online. 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 is not online. 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
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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 is not online. Remynfv
Joined: 02 Dec 2011
Total Posts: 587
06 Jan 2013 02:22 PM
then how do I run it?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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 is not online. 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 is not online. Remynfv
Joined: 02 Dec 2011
Total Posts: 587
06 Jan 2013 03:05 PM
Cmon anyone?
Report Abuse
digpoe is not online. 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 is not online. Remynfv
Joined: 02 Dec 2011
Total Posts: 587
06 Jan 2013 03:17 PM
it is a localscript
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
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 is not online. 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 is not online. 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 is not online. Remynfv
Joined: 02 Dec 2011
Total Posts: 587
06 Jan 2013 03:58 PM
really how?
Report Abuse
Remynfv is not online. Remynfv
Joined: 02 Dec 2011
Total Posts: 587
06 Jan 2013 04:14 PM
Anyone?
Report Abuse
1Topcop is not online. 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 is not online. 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 is not online. 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 is not online. Remynfv
Joined: 02 Dec 2011
Total Posts: 587
06 Jan 2013 04:51 PM
... ooooohhh yeeeaaaahhh
Report Abuse
Remynfv is not online. Remynfv
Joined: 02 Dec 2011
Total Posts: 587
06 Jan 2013 04:53 PM
... still wont work...
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