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 » Scripters
Home Search
 

Re: How to lock camera

Previous Thread :: Next Thread 
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
22 Mar 2015 04:58 PM
How do I lock a camera so when you hold right click to rotate/turn it you can't?
Report Abuse
gerov is not online. gerov
Joined: 05 Feb 2011
Total Posts: 5504
22 Mar 2015 05:02 PM
Make the cameratype fixed.

Just getting started! Send some trades :) - http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=14600251
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
22 Mar 2015 05:50 PM
It was already fixed. Still doesn't solve my problem.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
22 Mar 2015 06:02 PM
Use a Scriptable camera.
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
22 Mar 2015 06:04 PM
What does that do?
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
22 Mar 2015 06:08 PM
Can you be more descriptive?
Report Abuse
Jetta765214 is not online. Jetta765214
Joined: 22 Oct 2008
Total Posts: 1855
22 Mar 2015 06:10 PM
This should help:
http://wiki.roblox.com/index.php?title=Camera_manipulation
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
22 Mar 2015 06:13 PM
But I don't want it to stay in a co-ordinate. I want it not be able to be rotated, I want it to follow the player when the player is going left or right.
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
22 Mar 2015 06:14 PM
And unturnable by holding right click.... if that's a word.
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
22 Mar 2015 06:33 PM
Is there a way?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
22 Mar 2015 06:40 PM
I recommend you use a Scriptable camera. It's funny how often people have been wanting unrotatable cameras the past few days.
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
22 Mar 2015 06:42 PM
I'm using it for something special. *grin* Anyway, I'm not very experienced to do with cameras. Can you help me with a code to make it unrotateable? -Thanks
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
22 Mar 2015 06:45 PM
It mostly takes knowledge of CFrames.
Just use CFrames to position the camera behind the Character every 0.01666666666666667 seconds.
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
22 Mar 2015 06:46 PM
Ugh had to be CFrames... Can you give me an example if you may? I'm grateful to you c;
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
22 Mar 2015 06:51 PM
Ten studs behind the character, and 1 stud up and 2 to the side:

Camera.CoordinateFrame = Character.Head.CFrame * CFrame.new(2, 1, 10)
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
23 Mar 2015 11:15 AM
Doesn't work. :|
Report Abuse
Zoltra is not online. Zoltra
Joined: 21 Jul 2012
Total Posts: 105
23 Mar 2015 12:17 PM
Ok I tried this:
while true do
wait(0.01)
script.Parent.CoordinateFrame = workspace.Player.Head.CFrame * CFrame.new(2, 1, 10)
end

But now when I press w to walk forward it goes diagonal. Not straight.
Report Abuse
PixelAspect is online. PixelAspect
Joined: 29 Jun 2009
Total Posts: 266
23 Mar 2015 01:04 PM
From what your saying , I think you are looking for a camera that does this:
http://www.roblox.com/ZigZag-place?id=139491351

Here is the code:

Workspace.CurrentCamera.CameraType = "Scriptable" --Locks the camera
game:GetService("RunService").RenderStepped:connect(function() --Fires every frame making it perfectly smooth
Workspace.CurrentCamera.CoordinateFrame = Character.Head.CFrame + Vector3.new(20,1,20) --Set camera position + offset
end)
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
23 Mar 2015 01:22 PM
... Just set the CameraType to Attach


Total Posts: 404 ---------- Not Found
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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