Ameno__GodOH

camerpodre

Nov 26th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. --[[ Made by coolcapidog
  2. Channel ->> https://www.youtube.com/c/coolcapidog
  3. You can change the settings but you shouldn't change anything except settings.
  4. ]]
  5. ------------------------------------ Settings
  6. local SettingsEnabled = true
  7. local CreditsEnabled = true
  8. local DayClockTime = 14
  9. local NightClockTime = 18
  10. ------------------------------------ Settings
  11.  
  12. local Player = game.Players.LocalPlayer
  13. local tweenService = game:GetService("TweenService")
  14. local Camera = game.Workspace.CurrentCamera
  15. local MenuCam = game.Workspace:WaitForChild("MenuCam")
  16. local Process = false
  17.  
  18. wait(game:IsLoaded())
  19.  
  20. -- Inicializa a câmera com um tipo scriptable e a posição do MenuCam
  21. MenuCam.Transparency = 1
  22. Camera.CameraType = Enum.CameraType.Scriptable
  23. Camera.CFrame = MenuCam.CFrame
  24.  
  25. local BlurEffect = Instance.new("BlurEffect")
  26. BlurEffect.Size = 0
  27. BlurEffect.Parent = game.Lighting
  28.  
  29. local Black = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2,
  30. Enum.EasingStyle.Linear,
  31. Enum.EasingDirection.Out),
  32. {Transparency = 0})
  33. local UnBlack = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2,
  34. Enum.EasingStyle.Linear,
  35. Enum.EasingDirection.Out),
  36. {Transparency = 1})
  37. local Blur = tweenService:Create(BlurEffect ,TweenInfo.new(2,
  38. Enum.EasingStyle.Linear,
  39. Enum.EasingDirection.Out),
  40. {Size = 20})
  41. local UnBlur = tweenService:Create(BlurEffect ,TweenInfo.new(1,
  42. Enum.EasingStyle.Linear,
  43. Enum.EasingDirection.Out),
  44. {Size = 0})
  45.  
  46. if SettingsEnabled == false then
  47. script.Parent.SettingsButton.Visible = false
  48. end
  49. if CreditsEnabled == false then
  50. script.Parent.CreditsButton.Visible = false
  51. else
  52. if script.Parent:WaitForChild("CreditsFrame"):WaitForChild("Frame"):FindFirstChild("TextLabel") then
  53. if script.Parent:WaitForChild("CreditsFrame"):WaitForChild("Frame"):WaitForChild("TextLabel").Text == "Scripter -" then
  54. script.Parent.CreditsFrame.Frame.TextLabel.Text = "Scripter - "..Player.Name
  55. end
  56. end
  57. end
  58. script.Parent:WaitForChild("GameMusic").Playing = true
  59.  
  60. script.Parent.SettingsButton.MouseButton1Click:Connect(function()
  61. if Process == true then return end
  62. Process = true
  63. if script.Parent.SettingsFrame.Position == UDim2.new(0.5, 0,-0.4, 0) then
  64. script.Parent.SettingsFrame:TweenPosition(UDim2.new(0.5, 0,0.5, 0), "Out", "Quad", 1)
  65. script.Parent.PlayButton:TweenPosition(UDim2.new(-0.3, 0,0.353, 0), "Out", "Quad", 0.5)
  66. script.Parent.SettingsButton:TweenPosition(UDim2.new(-0.3, 0,0.508, 0), "Out", "Quad", 0.5)
  67. script.Parent.CreditsButton:TweenPosition(UDim2.new(-0.3, 0,0.636, 0), "Out", "Quad", 0.5)
  68. Blur:Play()
  69. else
  70. script.Parent.SettingsFrame:TweenPosition(UDim2.new(0.5, 0,-0.4, 0), "Out", "Quad", 1)
  71. script.Parent.PlayButton:TweenPosition(UDim2.new(0.005, 0,0.353, 0), "Out", "Quad", 0.5)
  72. script.Parent.SettingsButton:TweenPosition(UDim2.new(0.005, 0,0.508, 0), "Out", "Quad", 0.5)
  73. script.Parent.CreditsButton:TweenPosition(UDim2.new(0.005, 0,0.636, 0), "Out", "Quad", 0.5)
  74. UnBlur:Play()
  75. end
  76. wait(2)
  77. Process = false
  78. end)
  79.  
  80. script.Parent.CreditsButton.MouseButton1Click:Connect(function()
  81. if Process == true then return end
  82. Process = true
  83. if script.Parent.CreditsFrame.Position == UDim2.new(0.5, 0,-0.4, 0) then
  84. script.Parent.CreditsFrame:TweenPosition(UDim2.new(0.5, 0,0.5, 0), "Out", "Quad", 1)
  85. script.Parent.PlayButton:TweenPosition(UDim2.new(-0.3, 0,0.353, 0), "Out", "Quad", 0.5)
  86. script.Parent.SettingsButton:TweenPosition(UDim2.new(-0.3, 0,0.508, 0), "Out", "Quad", 0.5)
  87. script.Parent.CreditsButton:TweenPosition(UDim2.new(-0.3, 0,0.636, 0), "Out", "Quad", 0.5)
  88. Blur:Play()
  89. else
  90. script.Parent.CreditsFrame:TweenPosition(UDim2.new(0.5, 0,-0.4, 0), "Out", "Quad", 1)
  91. script.Parent.PlayButton:TweenPosition(UDim2.new(0.005, 0,0.353, 0), "Out", "Quad", 0.5)
  92. script.Parent.SettingsButton:TweenPosition(UDim2.new(0.005, 0,0.508, 0), "Out", "Quad", 0.5)
  93. script.Parent.CreditsButton:TweenPosition(UDim2.new(0.005, 0,0.636, 0), "Out", "Quad", 0.5)
  94. UnBlur:Play()
  95. end
  96. wait(2)
  97. Process = false
  98. end)
  99.  
  100. script.Parent.CreditsFrame.ExitButton.MouseButton1Click:Connect(function()
  101. if Process == true then return end
  102. Process = true
  103. script.Parent.CreditsFrame:TweenPosition(UDim2.new(0.5, 0,-0.4, 0), "Out", "Quad", 1)
  104. script.Parent.PlayButton:TweenPosition(UDim2.new(0.005, 0,0.353, 0), "Out", "Quad", 0.5)
  105. script.Parent.SettingsButton:TweenPosition(UDim2.new(0.005, 0,0.508, 0), "Out", "Quad", 0.5)
  106. script.Parent.CreditsButton:TweenPosition(UDim2.new(0.005, 0,0.636, 0), "Out", "Quad", 0.5)
  107. UnBlur:Play()
  108. wait(2)
  109. Process = false
  110. end)
  111.  
  112. script.Parent.SettingsFrame.ExitButton.MouseButton1Click:Connect(function()
  113. if Process == true then return end
  114. Process = true
  115. script.Parent.SettingsFrame:TweenPosition(UDim2.new(0.5, 0,-0.4, 0), "Out", "Quad", 1)
  116. script.Parent.PlayButton:TweenPosition(UDim2.new(0.005, 0,0.353, 0), "Out", "Quad", 0.5)
  117. script.Parent.SettingsButton:TweenPosition(UDim2.new(0.005, 0,0.508, 0), "Out", "Quad", 0.5)
  118. script.Parent.CreditsButton:TweenPosition(UDim2.new(0.005, 0,0.636, 0), "Out", "Quad", 0.5)
  119. UnBlur:Play()
  120. wait(2)
  121. Process = false
  122. end)
  123.  
  124. script.Parent.PlayButton.MouseButton1Click:Connect(function()
  125. if Process == true then return end
  126. Process = true
  127. Black:Play()
  128. wait(3)
  129.  
  130. -- Restaura a câmera para Custom somente quando o botão Play for clicado
  131. Camera.CameraType = Enum.CameraType.Custom
  132.  
  133. -- Remove os elementos da interface
  134. script.Parent.PlayButton:Destroy()
  135. script.Parent.SettingsButton:Destroy()
  136. script.Parent.CreditsButton:Destroy()
  137. script.Parent.ChangeLog:Destroy()
  138. script.Parent.Title:Destroy()
  139.  
  140. UnBlack:Play()
  141. end)
Advertisement
Add Comment
Please, Sign In to add comment