local R=game:GetService("\080\108\097\121\101\114\115")while not R.LocalPlayer do R.Changed:wait()end R=R.LocalPlayer local M=workspace.CurrentCamera local e=game:GetService("\082\117\110\083\101\114\118\105\099\101")local l=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local r=game:GetService("\083\116\097\114\116\101\114\071\117\105")local Z=require(script:WaitForChild("\083\112\114\105\110\103"))local F=require(script:WaitForChild("\077\097\105\100"))local P={}function ToggleGui(R)if not R then P.PointsNotificationsActive=r:GetCore("\080\111\105\110\116\115\078\111\116\105\102\105\099\097\116\105\111\110\115\065\099\116\105\118\101")P.BadgesNotificationsActive=r:GetCore("\066\097\100\103\101\115\078\111\116\105\102\105\099\097\116\105\111\110\115\065\099\116\105\118\101")P.Health=r:GetCoreGuiEnabled(Enum.CoreGuiType.Health)P.Backpack=r:GetCoreGuiEnabled(Enum.CoreGuiType.Backpack)P.PlayerList=r:GetCoreGuiEnabled(Enum.CoreGuiType.PlayerList)P.Chat=r:GetCoreGuiEnabled(Enum.CoreGuiType.Chat)end local function M(M)if R==false then return false end if P[M]~=nil then return P[M]end return true end r:SetCore("\080\111\105\110\116\115\078\111\116\105\102\105\099\097\116\105\111\110\115\065\099\116\105\118\101",M("\080\111\105\110\116\115\078\111\116\105\102\105\099\097\116\105\111\110\115\065\099\116\105\118\101"))r:SetCore("\066\097\100\103\101\115\078\111\116\105\102\105\099\097\116\105\111\110\115\065\099\116\105\118\101",M("\066\097\100\103\101\115\078\111\116\105\102\105\099\097\116\105\111\110\115\065\099\116\105\118\101"))r:SetCoreGuiEnabled(Enum.CoreGuiType.Health,M("\072\101\097\108\116\104"))r:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,M("\066\097\099\107\112\097\099\107"))r:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,M("\080\108\097\121\101\114\076\105\115\116"))r:SetCoreGuiEnabled(Enum.CoreGuiType.Chat,M("\067\104\097\116"))end


local player = game:GetService("Players")
while not player.LocalPlayer do player.Changed:wait() end
player = player.LocalPlayer
local camera = workspace.CurrentCamera

local RS  = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local StarterGui = game:GetService("StarterGui")

local Spring = require(script:WaitForChild("Spring"))
local Maid = require(script:WaitForChild("Maid"))

local WasGuiVisible = {}
function ToggleGui(on)
	if not on then
		WasGuiVisible["PointsNotificationsActive"] = StarterGui:GetCore("PointsNotificationsActive")
		WasGuiVisible["BadgesNotificationsActive"] = StarterGui:GetCore("BadgesNotificationsActive")
		WasGuiVisible["Health"] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Health)
		WasGuiVisible["Backpack"] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Backpack)
		WasGuiVisible["PlayerList"] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.PlayerList)
		WasGuiVisible["Chat"] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat)
	end

	local function GuiOn(name)
		if on == false then
			return false
		end
		if WasGuiVisible[name] ~= nil then
			return WasGuiVisible[name]
		end
		return true
	end

	StarterGui:SetCore("PointsNotificationsActive", GuiOn("PointsNotificationsActive"))
	StarterGui:SetCore("BadgesNotificationsActive", GuiOn("BadgesNotificationsActive"))

	StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, GuiOn("Health"))
	StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, GuiOn("Backpack"))
	StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, GuiOn("PlayerList"))
	StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, GuiOn("Chat"))
end
