|
| 19 Jan 2014 11:26 AM |
This script used to work but it stopped working (I think ROBLOX broke it) here is the script:
local camera = workspace.CurrentCamera local players = script.Parent.Parent.Parent.Parent.Name local duration = 20 local distance = 20 local part = Workspace.Cutscene.CamPart
function cutscene(camera) print("cutscene:started") local start = tick() local last = camera.CameraType camera.CameraType = "Scriptable" while wait() do local a = (tick()-start)/duration if a > 1 then break end camera.CoordinateFrame = part.CFrame*CFrame.Angles(math.rad(80)*a,0,0)*CFrame.new(0,0,distance) end print("cutscene:finished") end
Basically this script is supposed to make the player camera circle around a part, it used to work but now it broke. Anyone have any idea of why this script broke?
Thanks. |
|
|
| Report Abuse |
|
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
fire243
|
  |
| Joined: 04 Apr 2010 |
| Total Posts: 6532 |
|
|
| 19 Jan 2014 04:27 PM |
local target = (Insert Part) local camera = workspace.CurrentCamera camera.CameraSubject = target local angle = 0 while wait() do camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, angle, 0) * CFrame.new(0, 0, -5) angle = angle + math.rad(1) end
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom" |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 05:07 PM |
| There is no output for those wondering. That is why I think Roblox broke it. |
|
|
| Report Abuse |
|
|