|
| 14 Jun 2014 10:15 PM |
Okay so... I have my camera positioned where I want it, and it's focus is on a model. How do I get it to move from side to side??? I tried CFrame + Vector3.new but... it didn't move at all, plus if it did, it's focus would still be on the model. I'll show you what I have...
local cam = game.Workspace.CurrentCamera cam.CameraType = "Scriptable" cam.CoordinateFrame = CFrame.new(Vector3.new(-5,18,18), game.Workspace.FollowMe:GetModelCFrame().p)
function lala() cam.CoordinateFrame=CFrame + CFrame.new(.2,0,0) wati(.1) end while wait() do lala() end |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 10:17 PM |
Line 4.
Wassup with the unclosed )? |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 10:20 PM |
| Oh, line 4 is actually a continuation of line 3... didn't fit on forum page |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 10:20 PM |
| Then I dont think that's a valid CFrame value. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 10:21 PM |
| Well, it does work. It sets the initial Look Vector to the model, but I can't get it to move |
|
|
| Report Abuse |
|
|
Fragility
|
  |
| Joined: 12 Mar 2011 |
| Total Posts: 483 |
|
|
| 14 Jun 2014 10:23 PM |
| You can't add cframe, try CFrame * CFrame.new(.2,0,0) |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 10:25 PM |
| Nope, but would Vector3 work? Idk cuz the wiki said it can't, and it didn't but maybe i wrote it wrong |
|
|
| Report Abuse |
|
|
Fragility
|
  |
| Joined: 12 Mar 2011 |
| Total Posts: 483 |
|
|
| 14 Jun 2014 10:29 PM |
| You also misspelled wait on line 8 |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 10:32 PM |
| i iz bd spller dnt blaim me |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 10:34 PM |
| Bad spellers of the world, untie! |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 10:41 PM |
| zdil dnt wrk doe, sum help plz |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 14 Jun 2014 10:48 PM |
local cam = game.Workspace.CurrentCamera cam.CameraType = "Scriptable" cam.CoordinateFrame = CFrame.new(Vector3.new(-5,18,18), game.Workspace.FollowMe:GetModelCFrame().p)
while wait() do cam.CoordinateFrame=CFrame + Vector3.new(.2,0,0) wait(.1) end
Like this? If you want it to move relative to the rotation, do * CFrame.new(.2, 0, 0) |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 10:59 PM |
still doesn't work :| I do appreciate the help though lolz i fourgt eye wuz bad spelar |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 11:51 PM |
hmmm
local cam = game.Workspace.CurrentCamera cam.CameraType = "Scriptable" cam.CoordinateFrame = CFrame.new(Vector3.new(-5,18,18), game.Workspace.FollowMe:GetModelCFrame().p)
while wait() do cam.CoordinateFrame= cam.CoordinateFrame + Vector3.new(.2,0,0) wait(.1) end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 15 Jun 2014 01:58 AM |
| ^ Woops, yeah. Forgot the cam.CoordinateFrame. Idk why I put CFrame |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 11:10 AM |
| It's always a rookie mistake for me... |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2014 11:14 AM |
| Well, thx everyone for the contribution. It's good to know that people in this community are trying to help the best they can. :3 |
|
|
| Report Abuse |
|
|