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: Camera Script Help!

Previous Thread :: Next Thread 
CreepyPastaGame is not online. CreepyPastaGame
Joined: 02 Apr 2013
Total Posts: 36
04 Apr 2013 10:42 AM
I want it so the player cannot move the camera, here's the LocalScript...

local cam = workspace.CurrentCamera
cam.CameraSubject = workspace.Spawn
cam.CameraType = "Attach"
cam.CoordinateFrame = CFrame.new(40, 40, 40)
cam.Focus = CFrame.new(20, 3, 2)

(P.S: New to Camera Manipulation! :P)
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
04 Apr 2013 10:46 AM
Try using a while loop to set the CoordinateFrame.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
04 Apr 2013 10:54 AM
Players can't move Scriptable camera. That's best way to prevent them from moving it.
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
04 Apr 2013 12:13 PM
dekkonots method of freezing it will give a buggy look, zars one will work!
Report Abuse
velibor is not online. velibor
Joined: 24 Nov 2009
Total Posts: 1003
04 Apr 2013 12:17 PM
You can also use a GUI element to prevent this.
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
04 Apr 2013 12:21 PM
But if you want to keep a clear look on the map you're playing in, I would suggest using CurrentCamera.CameraType = "Scriptable"

!!!
Report Abuse
CreepyPastaGame is not online. CreepyPastaGame
Joined: 02 Apr 2013
Total Posts: 36
04 Apr 2013 12:37 PM
Thanks! Yes I used Scriptable and it worked perfectly! Just had to change the CFrame bit to the correct position.
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