script.Parent.MouseButton1Click:Connect(function()buttons.Settings.Content.Button.PopupScript.Disabled=true buttons.UpdateLog.Content.Button.PopupScript.Disabled=true buttons.Credits.Content.Button.PopupScript.Disabled=true buttons.Shop.Content.Button.PopupScript.Disabled=true buttons.Play.Content.Button.PlayScript.Disabled=true buttons.Settings:TweenPosition(UDim2.new(-0.25,0,.51,0),"\073\110\079\117\116","\081\117\097\100",.5,true)buttons.Shop:TweenPosition(UDim2.new(1.25,0,.51,0),"\073\110\079\117\116","\081\117\097\100",.5,true)buttons.Credits:TweenPosition(UDim2.new(1.25,0,.864,0),"\073\110\079\117\116","\081\117\097\100",.5,true)buttons.UpdateLog:TweenPosition(UDim2.new(-0.25,0,.864,0),"\073\110\079\117\116","\081\117\097\100",.5,true)buttons.Play:TweenPosition(UDim2.new(.5,0,-0.5,0),"\073\110\079\117\116","\081\117\097\100",.5,true)title:TweenPosition(UDim2.new(.5,0,1.5,0),"\073\110\079\117\116","\081\117\097\100",.5,true)wait(.5)buttons.Parent.Blackout:TweenPosition(UDim2.new(.5,0,.5,0),"\073\110\079\117\116","\081\117\097\100",.5,true)wait(.5)plr.Character.HumanoidRootPart.CFrame=spawnpart.CFrame*CFrame.new(0,3,0)plr.Character.Humanoid.WalkSpeed=16 plr.Character.Humanoid.JumpHeight=7.2 game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat,true)game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu,true)game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,true)game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,true)script.Parent.Parent.Parent.Parent.Parent.Parent.Music:Stop()buttons.Parent.Parent.Camera.Disabled=true workspace.CurrentCamera.CameraType=Enum.CameraType.Custom buttons.Parent.Parent.BackToMenu.Content.Button.B2MScript.Disabled=false buttons.Parent.Parent.BackToMenu.Visible=true buttons.Parent.Blackout:TweenPosition(UDim2.new(-0.5,0,.5,0),"\073\110\079\117\116","\081\117\097\100",.5,true)end)


script.Parent.MouseButton1Click:Connect(function()

	buttons.Settings.Content.Button.PopupScript.Disabled = true
	buttons.UpdateLog.Content.Button.PopupScript.Disabled = true
	buttons.Credits.Content.Button.PopupScript.Disabled = true
	buttons.Shop.Content.Button.PopupScript.Disabled = true
	buttons.Play.Content.Button.PlayScript.Disabled = true

	buttons.Settings:TweenPosition(UDim2.new(-0.25, 0,0.51, 0), "InOut", "Quad", 0.5, true)
	buttons.Shop:TweenPosition(UDim2.new(1.25, 0,0.51, 0), "InOut", "Quad", 0.5, true)
	buttons.Credits:TweenPosition(UDim2.new(1.25, 0,0.864, 0), "InOut", "Quad", 0.5, true)
	buttons.UpdateLog:TweenPosition(UDim2.new(-0.25, 0,0.864, 0), "InOut", "Quad", 0.5, true)
	buttons.Play:TweenPosition(UDim2.new(0.5, 0,-0.5, 0), "InOut", "Quad", 0.5, true)
	title:TweenPosition(UDim2.new(0.5, 0,1.5, 0), "InOut", "Quad", 0.5, true)

	wait(0.5)
	
	buttons.Parent.Blackout:TweenPosition(UDim2.new(0.5, 0,0.5, 0), "InOut", "Quad", 0.5, true)
	
	wait(0.5)
	
	plr.Character.HumanoidRootPart.CFrame = spawnpart.CFrame * CFrame.new(0, 3, 0)
	plr.Character.Humanoid.WalkSpeed = 16 -- IF THIS IS CUSTOM IN YOUR GAME, EDIT THIS. (DEFAULT = 16)
	plr.Character.Humanoid.JumpHeight = 7.2 -- IF THIS IS CUSTOM IN YOUR GAME, EDIT THIS. (DEFAULT = 7.2)
	
	
	
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, true)
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true)
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
	
	script.Parent.Parent.Parent.Parent.Parent.Parent.Music:Stop()
	buttons.Parent.Parent.Camera.Disabled = true
	workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
	buttons.Parent.Parent.BackToMenu.Content.Button.B2MScript.Disabled = false
	buttons.Parent.Parent.BackToMenu.Visible = true
	buttons.Parent.Blackout:TweenPosition(UDim2.new(-0.5, 0,0.5, 0), "InOut", "Quad", 0.5, true)
	
end)
