|
| 15 Mar 2016 12:16 PM |
Can anyone help me fix this script, gives no errors?
local cam = workspace.CurrentCamera local head = game.Workspace.Solitude.Head local look1 = game.Workspace.Part1 local look2 = game.Workspace.Part2 local main = game.Workspace.Part3 cam.CameraType = Enum.CameraType.Scriptable
function Turn() cam.CFrame = CFrame.new (main.Position, head.Position) wait(0.5) --Look left cam:Interpolate(look1.CFrame,look2.CFrame,2) wait(4.5) --Look forwards cam:Interpolate(main.CFrame, head.CFrame,1) wait(3) --Look right cam:Interpolate(main.CFrame,look1.CFrame,2) wait(4.5) --Look forwards cam:Interpolate(main.CFrame, head.CFrame,1) wait (2) end
Turn()
--[[while wait(math.random(5,20)) do Turn() end]]
#Strikin' |
|
|
| Report Abuse |
|
|
| |
|
| |
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 16 Mar 2016 12:27 PM |
interpolate
is
broken
try lerp with the camera?
|
|
|
| Report Abuse |
|
|
|
| 16 Mar 2016 12:32 PM |
its says
lerp is not a valid member of Camera
#Strikin' |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 16 Mar 2016 12:37 PM |
If I do remember correctly,
for i = 1,100 do cam.CFrame = cam.CFrame:lerp(cam.CFrame,ENDPOS,i/10) wait() end |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2016 01:01 PM |
all im trying to do is turn the view of the camera 90 degrees a few times, that would move the camera
#Strikin' |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 16 Mar 2016 01:11 PM |
Ah sorry, here:
for i = 1,100 do cam.CFrame = cam.CFrame:lerp(cam.CFrame,ENDPOS,i/100) wait() end
Anyway, this should work. Try it out and see if it works for your liking. Then you can modify the focus of the camera whilst this is running, just put it in a new coroutine maybe? Or modify the focus in this for loop. |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2016 02:18 PM |
ayy I tweaked it and it worked :D thanks a bunch bro
#Strikin' |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|