local x=game.Players.LocalPlayer local C=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local n=x.Character local k=game.Workspace.CurrentCamera local M=game.Workspace:WaitForChild("\077\101\110\117\067\097\109")local T=false wait(game:IsLoaded())M.Transparency=1 k.CameraType=Enum.CameraType.Scriptable k.CFrame=M.CFrame local i=Instance.new("\066\108\117\114\069\102\102\101\099\116")i.Size=0 i.Parent=game.Lighting local t=C:Create(script.Parent:WaitForChild("\066\108\097\099\107"),TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{Transparency=0})local e=C:Create(script.Parent:WaitForChild("\066\108\097\099\107"),TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{Transparency=1})local L=C:Create(i,TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{Size=20})local V=C:Create(i,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{Size=0})if SettingsEnabled==false then script.Parent.SettingsButton.Visible=false end if CreditsEnabled==false then script.Parent.CreditsButton.Visible=false else if((script.Parent:WaitForChild("\067\114\101\100\105\116\115\070\114\097\109\101")):WaitForChild("\070\114\097\109\101")):FindFirstChild("\084\101\120\116\076\097\098\101\108")then if(((script.Parent:WaitForChild("\067\114\101\100\105\116\115\070\114\097\109\101")):WaitForChild("\070\114\097\109\101")):WaitForChild("\084\101\120\116\076\097\098\101\108")).Text=="\083\099\114\105\112\116\101\114 -"then script.Parent.CreditsFrame.Frame.TextLabel.Text="\083\099\114\105\112\116\101\114 - "..x.Name end end end;(script.Parent:WaitForChild("\071\097\109\101\077\117\115\105\099")).Playing=true script.Parent.SettingsButton.MouseButton1Click:Connect(function()if T==true then return end T=true if script.Parent.SettingsFrame.Position==UDim2.new(.5,0,-0.4,0)then script.Parent.SettingsFrame:TweenPosition(UDim2.new(.5,0,.5,0),"\079\117\116","\081\117\097\100",1)script.Parent.PlayButton:TweenPosition(UDim2.new(-0.3,0,.353,0),"\079\117\116","\081\117\097\100",.5)script.Parent.SettingsButton:TweenPosition(UDim2.new(-0.3,0,.508,0),"\079\117\116","\081\117\097\100",.5)script.Parent.CreditsButton:TweenPosition(UDim2.new(-0.3,0,.636,0),"\079\117\116","\081\117\097\100",.5)L:Play()else script.Parent.SettingsFrame:TweenPosition(UDim2.new(.5,0,-0.4,0),"\079\117\116","\081\117\097\100",1)script.Parent.PlayButton:TweenPosition(UDim2.new(.005,0,.353,0),"\079\117\116","\081\117\097\100",.5)script.Parent.SettingsButton:TweenPosition(UDim2.new(.005,0,.508,0),"\079\117\116","\081\117\097\100",.5)script.Parent.CreditsButton:TweenPosition(UDim2.new(.005,0,.636,0),"\079\117\116","\081\117\097\100",.5)V:Play()end wait(2)T=false end)script.Parent.CreditsButton.MouseButton1Click:Connect(function()if T==true then return end T=true if script.Parent.CreditsFrame.Position==UDim2.new(.5,0,-0.4,0)then script.Parent.CreditsFrame:TweenPosition(UDim2.new(.5,0,.5,0),"\079\117\116","\081\117\097\100",1)script.Parent.PlayButton:TweenPosition(UDim2.new(-0.3,0,.353,0),"\079\117\116","\081\117\097\100",.5)script.Parent.SettingsButton:TweenPosition(UDim2.new(-0.3,0,.508,0),"\079\117\116","\081\117\097\100",.5)script.Parent.CreditsButton:TweenPosition(UDim2.new(-0.3,0,.636,0),"\079\117\116","\081\117\097\100",.5)L:Play()else script.Parent.CreditsFrame:TweenPosition(UDim2.new(.5,0,-0.4,0),"\079\117\116","\081\117\097\100",1)script.Parent.PlayButton:TweenPosition(UDim2.new(.005,0,.353,0),"\079\117\116","\081\117\097\100",.5)script.Parent.SettingsButton:TweenPosition(UDim2.new(.005,0,.508,0),"\079\117\116","\081\117\097\100",.5)script.Parent.CreditsButton:TweenPosition(UDim2.new(.005,0,.636,0),"\079\117\116","\081\117\097\100",.5)V:Play()end wait(2)T=false end)script.Parent.CreditsFrame.ExitButton.MouseButton1Click:Connect(function()if T==true then return end T=true script.Parent.CreditsFrame:TweenPosition(UDim2.new(.5,0,-0.4,0),"\079\117\116","\081\117\097\100",1)script.Parent.PlayButton:TweenPosition(UDim2.new(.005,0,.353,0),"\079\117\116","\081\117\097\100",.5)script.Parent.SettingsButton:TweenPosition(UDim2.new(.005,0,.508,0),"\079\117\116","\081\117\097\100",.5)script.Parent.CreditsButton:TweenPosition(UDim2.new(.005,0,.636,0),"\079\117\116","\081\117\097\100",.5)V:Play()wait(2)T=false end)script.Parent.SettingsFrame.ExitButton.MouseButton1Click:Connect(function()if T==true then return end T=true script.Parent.SettingsFrame:TweenPosition(UDim2.new(.5,0,-0.4,0),"\079\117\116","\081\117\097\100",1)script.Parent.PlayButton:TweenPosition(UDim2.new(.005,0,.353,0),"\079\117\116","\081\117\097\100",.5)script.Parent.SettingsButton:TweenPosition(UDim2.new(.005,0,.508,0),"\079\117\116","\081\117\097\100",.5)script.Parent.CreditsButton:TweenPosition(UDim2.new(.005,0,.636,0),"\079\117\116","\081\117\097\100",.5)V:Play()wait(2)T=false end)if script.Parent.SettingsFrame.Frame:FindFirstChild("\083\104\097\100\111\119\115")then script.Parent.SettingsFrame.Frame.Shadows.MouseButton1Click:Connect(function()if script.Parent.SettingsFrame.Frame.Shadows.Text=="\088"then script.Parent.SettingsFrame.Frame.Shadows.Text=""game.Lighting.GlobalShadows=false else script.Parent.SettingsFrame.Frame.Shadows.Text="\088"game.Lighting.GlobalShadows=true end end)end if script.Parent.SettingsFrame.Frame:FindFirstChild("\084\105\109\101")then script.Parent.SettingsFrame.Frame.Time.MouseButton1Click:Connect(function()if script.Parent.SettingsFrame.Frame.Time.Text=="\068\065\089"then script.Parent.SettingsFrame.Frame.Time.Text="\078\073\071\072\084"game.Lighting.ClockTime=NightClockTime else script.Parent.SettingsFrame.Frame.Time.Text="\068\065\089"game.Lighting.ClockTime=DayClockTime end end)end if script.Parent.SettingsFrame.Frame:FindFirstChild("\077\117\115\105\099")then script.Parent.SettingsFrame.Frame.Music.MouseButton1Click:Connect(function()if script.Parent.SettingsFrame.Frame.Music.Text=="\088"then script.Parent.SettingsFrame.Frame.Music.Text=""script.Parent.GameMusic.Playing=false else script.Parent.SettingsFrame.Frame.Music.Text="\088"script.Parent.GameMusic.Playing=true end end)end script.Parent.PlayButton.MouseButton1Click:Connect(function()if T==true then return end T=true t:Play()wait(3)k.CameraType=Enum.CameraType.Custom script.Parent.PlayButton:Destroy()script.Parent.SettingsButton:Destroy()script.Parent.CreditsButton:Destroy()e:Play()end)


local Player = game.Players.LocalPlayer
local tweenService = game:GetService("TweenService")
local Char = Player.Character
local Camera = game.Workspace.CurrentCamera
local MenuCam = game.Workspace:WaitForChild("MenuCam")
local Process = false

wait(game:IsLoaded())
MenuCam.Transparency = 1
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = MenuCam.CFrame
local BlurEffect = Instance.new("BlurEffect")
BlurEffect.Size = 0
BlurEffect.Parent = game.Lighting

local Black = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2, 
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out),
	{Transparency = 0})
local UnBlack = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2, 
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out),
	{Transparency = 1})
local Blur = tweenService:Create(BlurEffect ,TweenInfo.new(2, 
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out),
	{Size = 20})
local UnBlur = tweenService:Create(BlurEffect ,TweenInfo.new(1, 
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out),
	{Size = 0})

if SettingsEnabled == false then
	script.Parent.SettingsButton.Visible = false
end
if CreditsEnabled == false then
	script.Parent.CreditsButton.Visible = false
else
	if script.Parent:WaitForChild("CreditsFrame"):WaitForChild("Frame"):FindFirstChild("TextLabel") then
		if script.Parent:WaitForChild("CreditsFrame"):WaitForChild("Frame"):WaitForChild("TextLabel").Text == "Scripter -" then
			script.Parent.CreditsFrame.Frame.TextLabel.Text = "Scripter - "..Player.Name
		end
	end
end
script.Parent:WaitForChild("GameMusic").Playing = true

script.Parent.SettingsButton.MouseButton1Click:Connect(function()
	if Process == true then return end
	Process = true
	if script.Parent.SettingsFrame.Position == UDim2.new(0.5, 0,-0.4, 0) then
		script.Parent.SettingsFrame:TweenPosition(UDim2.new(0.5, 0,0.5, 0), "Out", "Quad", 1)
		script.Parent.PlayButton:TweenPosition(UDim2.new(-0.3, 0,0.353, 0), "Out", "Quad", 0.5)
		script.Parent.SettingsButton:TweenPosition(UDim2.new(-0.3, 0,0.508, 0), "Out", "Quad", 0.5)
		script.Parent.CreditsButton:TweenPosition(UDim2.new(-0.3, 0,0.636, 0), "Out", "Quad", 0.5)
		Blur:Play()
	else
		script.Parent.SettingsFrame:TweenPosition(UDim2.new(0.5, 0,-0.4, 0), "Out", "Quad", 1)
		script.Parent.PlayButton:TweenPosition(UDim2.new(0.005, 0,0.353, 0), "Out", "Quad", 0.5)
		script.Parent.SettingsButton:TweenPosition(UDim2.new(0.005, 0,0.508, 0), "Out", "Quad", 0.5)
		script.Parent.CreditsButton:TweenPosition(UDim2.new(0.005, 0,0.636, 0), "Out", "Quad", 0.5)
		UnBlur:Play()
	end
	wait(2)
	Process = false
end)

script.Parent.CreditsButton.MouseButton1Click:Connect(function()
	if Process == true then return end
	Process = true
	if script.Parent.CreditsFrame.Position == UDim2.new(0.5, 0,-0.4, 0) then
		script.Parent.CreditsFrame:TweenPosition(UDim2.new(0.5, 0,0.5, 0), "Out", "Quad", 1)
		script.Parent.PlayButton:TweenPosition(UDim2.new(-0.3, 0,0.353, 0), "Out", "Quad", 0.5)
		script.Parent.SettingsButton:TweenPosition(UDim2.new(-0.3, 0,0.508, 0), "Out", "Quad", 0.5)
		script.Parent.CreditsButton:TweenPosition(UDim2.new(-0.3, 0,0.636, 0), "Out", "Quad", 0.5)
		Blur:Play()
	else
		script.Parent.CreditsFrame:TweenPosition(UDim2.new(0.5, 0,-0.4, 0), "Out", "Quad", 1)
		script.Parent.PlayButton:TweenPosition(UDim2.new(0.005, 0,0.353, 0), "Out", "Quad", 0.5)
		script.Parent.SettingsButton:TweenPosition(UDim2.new(0.005, 0,0.508, 0), "Out", "Quad", 0.5)
		script.Parent.CreditsButton:TweenPosition(UDim2.new(0.005, 0,0.636, 0), "Out", "Quad", 0.5)
		UnBlur:Play()
	end
	wait(2)
	Process = false
end)

script.Parent.CreditsFrame.ExitButton.MouseButton1Click:Connect(function()
	if Process == true then return end
	Process = true
	script.Parent.CreditsFrame:TweenPosition(UDim2.new(0.5, 0,-0.4, 0), "Out", "Quad", 1)
	script.Parent.PlayButton:TweenPosition(UDim2.new(0.005, 0,0.353, 0), "Out", "Quad", 0.5)
	script.Parent.SettingsButton:TweenPosition(UDim2.new(0.005, 0,0.508, 0), "Out", "Quad", 0.5)
	script.Parent.CreditsButton:TweenPosition(UDim2.new(0.005, 0,0.636, 0), "Out", "Quad", 0.5)
	UnBlur:Play()
	wait(2)
	Process = false
end)

script.Parent.SettingsFrame.ExitButton.MouseButton1Click:Connect(function()
	if Process == true then return end
	Process = true
	script.Parent.SettingsFrame:TweenPosition(UDim2.new(0.5, 0,-0.4, 0), "Out", "Quad", 1)
	script.Parent.PlayButton:TweenPosition(UDim2.new(0.005, 0,0.353, 0), "Out", "Quad", 0.5)
	script.Parent.SettingsButton:TweenPosition(UDim2.new(0.005, 0,0.508, 0), "Out", "Quad", 0.5)
	script.Parent.CreditsButton:TweenPosition(UDim2.new(0.005, 0,0.636, 0), "Out", "Quad", 0.5)
	UnBlur:Play()
	wait(2)
	Process = false
end)

if script.Parent.SettingsFrame.Frame:FindFirstChild("Shadows") then
	script.Parent.SettingsFrame.Frame.Shadows.MouseButton1Click:Connect(function()
		if script.Parent.SettingsFrame.Frame.Shadows.Text == "X" then
			script.Parent.SettingsFrame.Frame.Shadows.Text = ""
			game.Lighting.GlobalShadows = false
		else
			script.Parent.SettingsFrame.Frame.Shadows.Text = "X"
			game.Lighting.GlobalShadows = true
		end
	end)
end
if script.Parent.SettingsFrame.Frame:FindFirstChild("Time") then
	script.Parent.SettingsFrame.Frame.Time.MouseButton1Click:Connect(function()
		if script.Parent.SettingsFrame.Frame.Time.Text == "DAY" then
			script.Parent.SettingsFrame.Frame.Time.Text = "NIGHT"
			game.Lighting.ClockTime = NightClockTime
		else
			script.Parent.SettingsFrame.Frame.Time.Text = "DAY"
			game.Lighting.ClockTime = DayClockTime
		end
	end)
end
if script.Parent.SettingsFrame.Frame:FindFirstChild("Music") then
	script.Parent.SettingsFrame.Frame.Music.MouseButton1Click:Connect(function()
		if script.Parent.SettingsFrame.Frame.Music.Text == "X" then
			script.Parent.SettingsFrame.Frame.Music.Text = ""
			script.Parent.GameMusic.Playing = false
		else
			script.Parent.SettingsFrame.Frame.Music.Text = "X"
			script.Parent.GameMusic.Playing = true
		end
	end)
end
script.Parent.PlayButton.MouseButton1Click:Connect(function()
	if Process == true then return end
	Process = true
	Black:Play()
	wait(3)
	Camera.CameraType = Enum.CameraType.Custom
	script.Parent.PlayButton:Destroy()
	script.Parent.SettingsButton:Destroy()
	script.Parent.CreditsButton:Destroy()
	UnBlack:Play()
end)
