AeroMcFly

CameraPlus Test

Mar 26th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.12 KB | None | 0 0
  1.  
  2. local cam = require(game.Workspace.CameraPlus)
  3.  
  4. cam:TweenTo(
  5.     CFrame.new(Vector3.new(50, 50, 50), Vector3.new(0, 5, 0)), -- End CFrame
  6.     3,  -- Duration
  7.     cam.Ease.InOut.Sine -- Easing Function
  8. )
  9.  
  10. cam:TweenToFOV(
  11.     20, -- New FieldOfView
  12.     3, -- Duration
  13.     cam.Ease.InOut.Expo -- Easing Function
  14. )
  15.  
  16. cam:TweenToFOV(
  17.     70, -- New FieldOfView
  18.     3, -- Duration
  19.     cam.Ease.InOut.Expo -- Easing Function
  20. )
  21.  
  22. cam:TweenToPlayer(
  23.     3, -- Duration
  24.     cam.Ease.InOut.Sine -- Easing Function
  25. )
  26.  
  27.  
  28. cam:TweenToAll(
  29.     CFrame.new(Vector3.new(50, 50, 50), Vector3.new(0, 5, 0)), -- End CFrame
  30.     70,         -- End FieldOfView
  31.     math.rad(360*2), -- End Roll
  32.     3,          -- Duration
  33.     cam.Ease.InOut.Expo -- Easing Function
  34. )
  35.  
  36. -- Bounce to the ground:
  37. cam:TweenTo(
  38.     CFrame.new(Vector3.new(50, 1, 50), Vector3.new(0, 5, 0)), -- End CFrame
  39.     3,  -- Duration
  40.     cam.Ease.Out.Bounce -- Easing Function
  41. )
  42.  
  43. -- Rotate 360:
  44. cam:TweenToRoll(
  45.     math.rad(360),
  46.     2,
  47.     cam.Ease.InOut.Expo
  48. )
  49.  
  50. -- Elastic to the sky:
  51. cam:TweenTo(
  52.     CFrame.new(Vector3.new(50, 50, 50), Vector3.new(0, 5, 0)), -- End CFrame
  53.     2,  -- Duration
  54.     cam.Ease.Out.Elastic -- Easing Function
  55. )
Add Comment
Please, Sign In to add comment