Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. script.Parent.Blur.Parent = game.Lighting
  2. game.Workspace.Camera.FieldOfView = 120
  3. game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
  4. script.Parent.Auto.BackgroundTransparency = .75
  5. script.Parent.Auto.TextTransparency = 0
  6. script.Parent.Manual.BackgroundTransparency = .75
  7. script.Parent.Manual.TextTransparency = 0
  8. script.Parent.Parent.Parent.Parent.Character.Torso.Anchored = true
  9. script.Parent.Recommended.TextTransparency = 0
  10. script.Parent.Recommended.BackgroundTransparency = 1
  11. script.Parent.AutoT.TextTransparency = 0
  12. script.Parent.AutoT.BackgroundTransparency = .9
  13. script.Parent.ManualT.TextTransparency = 0
  14. script.Parent.ManualT.BackgroundTransparency = .9
  15. function ManualClicked(plr)
  16. if script.Parent.Parent.Parent.Parent.manualorauto.Value == '' then
  17. script.Parent.Parent.Parent.Parent.manualorauto.Value = 'Manual'
  18. game.Workspace.CurrentCamera.CameraSubject = game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Parent.Name).Humanoid
  19. game.Workspace.CurrentCamera.CameraType = 'Custom'
  20. for i=1,50 do
  21. game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView - 1
  22. wait(.01)
  23. end
  24. game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
  25. game.Lighting.Blur:Remove()
  26. for i = 1, 15 do
  27. script.Parent.Manual.BackgroundTransparency = script.Parent.Manual.BackgroundTransparency - .5
  28. end
  29. script.Parent.Parent.Parent.Parent.Character.Torso.Anchored = false
  30. script.Parent.Parent:Destroy()
  31. end
  32. end
  33.  
  34. function AutoClicked(plr)
  35. if script.Parent.Parent.Parent.Parent.manualorauto.Value == '' then
  36. script.Parent.Parent.Parent.Parent.manualorauto.Value = 'Auto'
  37. game.Workspace.CurrentCamera.CameraSubject = game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Parent.Name).Humanoid
  38. game.Workspace.CurrentCamera.CameraType = 'Custom'
  39. for i=1,50 do
  40. game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView - 1
  41. wait(.01)
  42. end
  43. game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
  44. game.Lighting.Blur:Remove()
  45. for i = 1, 15 do
  46. script.Parent.Manual.BackgroundTransparency = script.Parent.Manual.BackgroundTransparency - .5
  47. end
  48. script.Parent.Parent.Parent.Parent.Character.Torso.Anchored = false
  49. script.Parent.Parent:Destroy()
  50. end
  51. end
  52.  
  53. script.Parent.Manual.MouseButton1Click:connect(ManualClicked)
  54. script.Parent.Auto.MouseButton1Click:connect(AutoClicked)
  55. local angle = 0
  56. while script.Parent.Parent.Parent.Parent.manualorauto.Value == '' do
  57. game.Workspace.CurrentCamera.CameraType = 'Scriptable'
  58. game.Workspace.CurrentCamera.CameraSubject = game.Workspace.Baseplate
  59. game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(game.Workspace.Baseplate.Position)
  60. * CFrame.Angles(0, angle, 0)
  61. * CFrame.new(0,25,0)
  62. angle = angle + math.rad(1)
  63. wait(.01)
  64. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement