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 can I make the camera not move?

Previous Thread :: Next Thread 
killjoy37 is not online. killjoy37
Joined: 27 Aug 2008
Total Posts: 2821
20 Jul 2011 04:07 PM
Like, say if a person touched a brick, how would i make their camera fixed on the point it was when they touched it? (I really just need the line the stops the camera, not the whole script.)
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
20 Jul 2011 04:08 PM
Use a local script

Workspace.CurrentCammera.CammeraType = 1
Report Abuse
killjoy37 is not online. killjoy37
Joined: 27 Aug 2008
Total Posts: 2821
20 Jul 2011 04:12 PM
Ok, I'm not sure how a local script helps but thanks. (I don't know the difference)
Report Abuse
killjoy37 is not online. killjoy37
Joined: 27 Aug 2008
Total Posts: 2821
20 Jul 2011 04:23 PM
CameraType 1 is attach, 2 is fixed.
Report Abuse
sonic87612 is not online. sonic87612
Joined: 02 Dec 2007
Total Posts: 654
20 Jul 2011 04:26 PM
Attached is the best camera type for a still camera.
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
20 Jul 2011 04:27 PM
Place a localscript inside the player's backpack, then:
game.Workspace.CurrentCamera.CameraSubject = nil
game.Workspace.CurrentCamera.CameraType = 0
game.Workspace.CurrentCamera.Focus = CFrame.new(math.huge, math.huge, math.huge)
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(x position you want, y position you want, z position you want)
Report Abuse
palk47 is not online. palk47
Joined: 07 May 2009
Total Posts: 508
20 Jul 2011 04:27 PM
If you want it to not move, but follow, Make sure it's set on "Follow"
If you want the camera to not move at all, make sure it's set on "Attached"
Report Abuse
killjoy37 is not online. killjoy37
Joined: 27 Aug 2008
Total Posts: 2821
20 Jul 2011 04:36 PM
If i put it on attached, you can still move it up and down, and it follows the person, i just want it to stay still.
Report Abuse
killjoy37 is not online. killjoy37
Joined: 27 Aug 2008
Total Posts: 2821
20 Jul 2011 04:37 PM
And thanks merlin, that looks helpful.
Report Abuse
killjoy37 is not online. killjoy37
Joined: 27 Aug 2008
Total Posts: 2821
20 Jul 2011 04:52 PM
Woah! Merlin's script made my whole screen white, that would be a good blind effect, but I don't understand how? Is it because of the 3rd line?

on = false
while on == false do
game.Workspace.CurrentCamera.CameraSubject = nil
game.Workspace.CurrentCamera.CameraType = 0
game.Workspace.CurrentCamera.Focus = CFrame.new(math.huge, math.huge, math.huge)
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(0, 100, 0)
on = true
end
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
20 Jul 2011 04:53 PM
game.Workspace.CurrentCamera.Focus = CFrame.new(math.huge, math.huge, math.huge)
That line is fickle. It either works or doesn't. It's the only way to control the camera (I think) completely.
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