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 I lock the Camera?

Previous Thread :: Next Thread 
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 06:14 PM
I know how to but I want to know how to lock it while moving it.

It's not easy being cheesy.
Report Abuse
IenzoTheGreat is not online. IenzoTheGreat
Joined: 12 Jul 2010
Total Posts: 150
18 Jan 2012 06:14 PM
[ Content Deleted ]
Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
18 Jan 2012 06:15 PM
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(math.huge, math.huge, math.huge)

Even thought that's kinda experimental it will probably work.
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
18 Jan 2012 06:15 PM
This may help: http://wiki.roblox.com/index.php/Camera
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 06:15 PM
@Waf, I'm not that stupid idiot get out.

It's not easy being cheesy.
Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
18 Jan 2012 06:15 PM
Oh yeah btw, you might want to use a LocalScript also.
Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
18 Jan 2012 06:16 PM
You asked how to lock the camera and I answered, don't have to bite my head off.
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
18 Jan 2012 06:16 PM
Yes, use a localscript that is a descendant of the player controlling the camera upi want locked.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 06:18 PM
Thanks Tdog.

It's not easy being cheesy.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 06:29 PM
Actually, that didn't help that much..
I'll just post my code.


    cam = game.Workspace.CurrentCamera
    pallace = game.Lighting:FindFirstChild("Pallace"):Clone()
    pallace:MakeJoints()
    pallace.Parent = cam
    pallace:MakeJoints()
    pall = cam:FindFirstChild("Pallace")
    pall:MakeJoints()
    plr = game.Players.LocalPlayer
    cam.CameraSubject = pall:FindFirstChild("Cam")
    while wait() do
    cam.CoordinateFrame = pall:FindFirstChild("Cam")["1"].CFrame * CFrame.new(-8,0,0)
    wait(2)
    cam.CoordinateFrame = pall:FindFirstChild("Cam")["1"].CFrame * CFrame.new(2,2,2)
    end
    wait(2)
    --cam.CoordinateFrame = pall:FindFirstChild("Cam")["2"].CFrame * CFrame.new(0,0,5)

It's not easy being cheesy.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 06:49 PM
Bump.

It's not easy being cheesy.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 07:38 PM
Bump.

It's not easy being cheesy.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 08:06 PM
Bump.

It's not easy being cheesy.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 08:42 PM
Bump.

It's not easy being cheesy.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
18 Jan 2012 08:51 PM
Stop bumping.
Personally, I don't know, but try making a while loop with a line setting the CordinateFrame constantly to a set Vector3.


Free Fireworks!
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 08:51 PM
Well, I do need help so why should I stop bumping?

It's not easy being cheesy.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
18 Jan 2012 11:26 PM
Try doing what I said then.
I don't know how to manipulate camera, so I am not much help. But, all I really know is just set a while true do loop on the Coordinate Frame to a certain Vector3, with the quickest amount of wait, wait(.0001). It would probably prevent them from moving the camera.

Vote against SOPA! If we don't, then Ever ████ Will be Censored! So, let ████ vote ████ SOPA! [Free Fire ████!]
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jan 2012 11:41 PM
I know but I want it so like when I move the camera they can't move it too so like lets say I make the camera to 0,0,0 and then make it were they can't move, How do I make it so the camera moves while they can't move there camera?

It's not easy being cheesy.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
19 Jan 2012 01:50 AM
Bump.

It's not easy being cheesy.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
19 Jan 2012 03:09 AM
Bump

It's not easy being cheesy.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
19 Jan 2012 03:23 AM
[ Content Deleted ]
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
19 Jan 2012 03:16 PM
@Woof, Didn't help.

Oh god, I hate Floodcheck.

It's not easy being cheesy.
Report Abuse
lordyoman is not online. lordyoman
Joined: 10 Jun 2010
Total Posts: 426
19 Jan 2012 04:01 PM
Mabey you can just set a loop that just keeps it postitioned correctly?
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
19 Jan 2012 04:29 PM
Lord, If you're not going to help get out.

It's not easy being cheesy.
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
19 Jan 2012 04:36 PM
CameraType = "Fixed"
doesn't that prevent movement?

~I've been to nil and back.
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