generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: how do i make cameraa interpolations go in sequence

Previous Thread :: Next Thread 
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
17 Jul 2017 11:59 PM
local cam = workspace.CurrentCamera
for i = 1,math.huge do
wait()
cam.CameraType = "Scriptable"
cam:Interpolate(workspace.CamPart1.CFrame,workspace.CamPart2.CFrame,.25)
if cam.CoordinateFrame == workspace.CamPart1.CFrame then break end
end

for i = 1,math.huge do
wait()
cam.CameraType = "Scriptable"
cam:Interpolate(workspace.CamPart2.CFrame,workspace.CamPart2.CFrame,1)
end
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
18 Jul 2017 12:06 AM
cam:Interpolate(workspace.CamPart1.CFrame,workspace.CamPart2.CFrame,.25)
cam.InterpolationFinished:wait()
cam:Interpolate(workspace.CamPart3.CFrame,workspace.CamPart3.CFrame,1)
cam.InterpolationFinished:wait()


http://wiki.roblox.com/index.php?title=API:Class/Camera/InterpolationFinished
http://wiki.roblox.com/index.php?title=RBXScriptSignal#wait_2
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
18 Jul 2017 12:31 AM
i think i have to loop it
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
18 Jul 2017 12:35 AM
local cam = workspace.CurrentCamera
for i = 1,math.huge do
wait()
cam.CameraType = Enum.CameraType.Scriptable
cam:Interpolate(workspace.CamPart1.CFrame,workspace.CamPart2.CFrame,.5)
cam.InterpolationFinished:wait()
cam:Interpolate(workspace.CamPart2.CFrame,workspace.CamPart2.CFrame,5)
cam.InterpolationFinished:wait()
if script ~= nil then break end
end

game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"

not returning to player qq
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
18 Jul 2017 12:50 AM
bunp
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
18 Jul 2017 01:23 AM
Oh, you're just trolling then. Carry on
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
19 Jul 2017 04:19 PM
im not torlling im just not skileld in cameras
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
19 Jul 2017 04:23 PM
no output, doesnt work

local cam = workspace.CurrentCamera

cam.CameraType = Enum.CameraType.Scriptable
cam:Interpolate(workspace.CamPart1.CFrame,workspace.CamPart2.CFrame,.75)
cam.InterpolationFinished:wait()
cam:Interpolate(workspace.CamPart2.CFrame,workspace.CamPart2.CFrame,5)
cam.InterpolationFinished:wait()
cam:Interpolate(workspace.CamPart3.CFrame,workspace.CamPart3.CFrame,2.5)
cam.InterpolationFinished:wait()
cam:Interpolate(workspace.CamPart4.CFrame,workspace.CamPart4.CFrame,5)
cam.InterpolationFinished:wait()


game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image