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
|
  |
| 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
|
  |
| Joined: 16 Jun 2012 |
| Total Posts: 24227 |
|
|
| 21 Mar 2015 05:39 PM |
edit the script to your desire.
R$72 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 21 Mar 2015 06:29 PM |
use clonetroopers cutscene editor plugin its so much easier
|
|
|
| Report Abuse |
|
|
jordo
|
  |
| Joined: 13 Apr 2007 |
| Total Posts: 265 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|