|
| 15 Jan 2012 04:52 PM |
local cam = game.Workspace.CurrentCamera cam.CoordinateFrame = Workspace.Cams["1"].CFrame * CFrame.new(0, 0, 5) lord = game.Workspace["DH Lord"] lord.Name = "DH Lord: " wait(2) lord.Name = "DH Lord" wait(1) local Pos1 = Vector3.new(274.5,230.6,-26.5) local Pos2 = Vector3.new(274.5,236.2,-19.5) for ratio = 0,1,0.1 do wait() NewPosition = Pos1:lerp(Pos2, ratio) cam.Focus = NewPosition end
Output: Title ***It's supposed to move the game to a Part named 1 then name the DH lord a diffrent name then lerp the cam***
It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Jan 2012 05:00 PM |
cam.Focus = NewPosition
It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Jan 2012 05:03 PM |
Well how do I CFrame it?
It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Jan 2012 05:05 PM |
So when I do
pos = CFrame.new(274.5,230.6,-26.5) pos2 = CFrame.new(274.5,236.2,-19.5) for r = 0,1,0.1 do wait(0.01) cam.CoordinateFrame = pos:Lerp(pos2, r) end
The output is: Lerp is not a valid member
It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2012 05:09 PM |
cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p cam.CoordinateFrame = cam.CoordinateFrame.p:Lerp(Pos2.p, r) * cam_rot
Try that. |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2012 05:11 PM |
p is not a valid member
It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2012 05:13 PM |
| What line does it say that? |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2012 05:14 PM |
cam.CoordinateFrame = cam.CoordinateFrame.p:Lerp(Pos2.p, r) * cam_rot
It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2012 05:17 PM |
| Are you sure that Pos2 is a CFrame? |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2012 05:18 PM |
yes
It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
| |
|