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: Camera CFrame

Previous Thread :: Next Thread 
jordo is not online. jordo
Joined: 13 Apr 2007
Total Posts: 265
21 Mar 2015 05:34 PM
I was wondering if anyone knows where i could get a script that locks a persons camera so they cant move it, but will also rotate its view with the player. so if the player is on his side the camera would show everything sideways.
Report Abuse
RoseSting is not online. RoseSting
Joined: 16 Jun 2012
Total Posts: 24227
21 Mar 2015 05:38 PM
local target = player.Character.Torso
local camera = workspace.CurrentCamera

function cameramove()
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
local angle = 0
camera.FieldOfView = 90

while wait() do
camera.CoordinateFrame = CFrame.new(target.Position) --Start at the position of the part
* CFrame.Angles(0, angle, 0) --Rotate by the angle
* CFrame.new(0, 0, 5) --Move the camera backwards 5 units
end
end


cameramove()

R$72
Report Abuse
RoseSting is not online. RoseSting
Joined: 16 Jun 2012
Total Posts: 24227
21 Mar 2015 05:39 PM
edit the script to your desire.

R$72
Report Abuse
jordo is not online. jordo
Joined: 13 Apr 2007
Total Posts: 265
21 Mar 2015 06:15 PM
I tried making it rotate with the players head but it didn't work. it kept spinning around like crazy
Report Abuse
ILimitedSteel is not online. ILimitedSteel
Joined: 21 Jan 2013
Total Posts: 65
21 Mar 2015 06:29 PM
use clonetroopers cutscene editor plugin its so much easier

Report Abuse
jordo is not online. jordo
Joined: 13 Apr 2007
Total Posts: 265
21 Mar 2015 06:50 PM
Does not work.
Report Abuse
ILimitedSteel is not online. ILimitedSteel
Joined: 21 Jan 2013
Total Posts: 65
22 Mar 2015 06:51 AM
Ok then um try taking the script from the cutscene editor and changing it to what you want
Report Abuse
parkiet3 is not online. parkiet3
Joined: 16 Jul 2011
Total Posts: 832
22 Mar 2015 07:26 AM
local p = game.Players.LocalPlayer
local torso = p.Character:WaitForChild("Torso")
local cam = game.Workspace.CurrentCamera
cam.CameraType = "Scriptable"

game:GetService("RunService").RenderStepped:connect(function()
cam.CoordinateFrame = CFrame.new((torso.CFrame * CFrame.new(0,10,-20)).p, torso.CFrame.p)
end)
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