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: What's a script for this camera?

Previous Thread :: Next Thread 
NovaPrimus is not online. NovaPrimus
Joined: 21 Apr 2013
Total Posts: 455
11 Feb 2017 07:29 PM
What's a script that when a player joins, that player's camera is locked to a certain part cannot move or zoom at all?


Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
11 Feb 2017 08:07 PM
No script required. Check the properties of StarterPlayer for CameraMinZoomDistance and CameraMaxZoomDistance.


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx
Report Abuse
SpeedyJZoel is not online. SpeedyJZoel
Joined: 16 Aug 2010
Total Posts: 2416
11 Feb 2017 08:12 PM
depends on what that certain part is wrath. if its the player then yeah you can just edit starterplayer if it's a part you'll have to set the player's camera to scriptable and then change its CFrame and ##### ## can be a bit confusing at first to get things to point in the direction you want, so a bit of a tip: to get the camera to point toward a single block you should have a brick where you want the camera to be and then the actual part you want it to look at, then do camera.CFrame=CFrame.new([Block Where it should be positioned].Position,[Block to look at].Position) Speedy J. Zoel || Robux: R$1,576 || RAP: R$119,629
Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
11 Feb 2017 08:24 PM
Oh, I think I misread. If the guy wants it locked to a certain part, you just set the CameraSubject (or the Focus, I forget)


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx
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