|
| 14 Dec 2015 02:37 PM |
Why won't this work? The camera doesn't change at all..
repeat index = index + 1 print(index) cam.CameraSubject = workspace.Part cam.CoordinateFrame = CFrame.new(workspace.Part.Position + Vector3.new(index,index, index)) print(cam.CoordinateFrame) wait(.5) until v == true |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2015 02:43 PM |
| Did you declare index at the top? |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Dec 2015 02:44 PM |
| Does it ever print anything? |
|
|
| Report Abuse |
|
|
| |
|
cgjnm
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 2347 |
|
|
| 14 Dec 2015 06:58 PM |
Here is my exact local script inside of the player:
index = 0 local player = game.Players.LocalPlayer local cam = game.Workspace.CurrentCamera v = false repeat index = index + 1 print(index) cam.CameraSubject = workspace.Part cam.CoordinateFrame = CFrame.new(workspace.Part.Position + Vector3.new(index,index, index)) print(cam.CoordinateFrame) wait(.5) until v == true
The wait(.5) makes it ugly, but it works |
|
|
| Report Abuse |
|
|