Advertisement
Guest User

ya yeet ska skeet bukaroo

a guest
Nov 12th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. local Camera = workspace.CurrentCamera
  2. local Map = workspace.Multiplayer:WaitForChild("Map")
  3.  
  4. function MoveCam(part, focus, dur, waitDur)
  5. Camera.CameraType = Enum.CameraType.Scriptable
  6. if type(part) == "table" and type(focus) == "table" and type(dur) == "table" and type(waitDur) == "table" then
  7. for i = 1, table.getn(part) do
  8. Camera:Interpolate(part[i].CFrame, focus[i].CFrame, dur[i])
  9. Camera.InterpolationFinished:Wait()
  10. wait(waitDur[i])
  11. end
  12. Camera.CameraType = Enum.CameraType.Custom
  13. end
  14. end
  15.  
  16. Map.MapHandling.InterpolateCam.OnClientEvent:Connect(function()
  17. MoveCam({
  18. Map.CameraPos,
  19. Map.CameraPos2
  20. }, {
  21. Map.CameraFocus,
  22. Map.CameraFocus2
  23. }, {
  24. 3.5,
  25. 1.8
  26. }, {
  27. 9,
  28. 9
  29. })
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement