local l={"\078\111\116\105\099\101\083\111\117\110\100\073\100";"\078\111\116\105\099\101\086\111\108\117\109\101";"\078\111\116\105\099\101\080\105\116\099\104","\069\114\114\111\114\083\111\117\110\100\073\100";"\069\114\114\111\114\086\111\108\117\109\101","\069\114\114\111\114\080\105\116\099\104","\065\108\101\114\116\083\111\117\110\100\073\100";"\065\108\101\114\116\086\111\108\117\109\101";"\065\108\101\114\116\080\105\116\099\104","\080\114\101\102\105\120";"\083\112\108\105\116\075\101\121"}local i={};(coroutine.wrap(function()if not main.initialized then main.client.Signals.Initialized.Event:Wait()end for l,x in pairs(l)do i[x]=settings[x]end end))()local function x()if not main.initialized then main.client.Signals.Initialized.Event:Wait()end return{DataKey=0;DataToUpdate=true;Theme=settings.Theme,NoticeSoundId=settings.NoticeSoundId;NoticeVolume=settings.NoticeVolume,NoticePitch=settings.NoticePitch;ErrorSoundId=settings.ErrorSoundId,ErrorVolume=settings.ErrorVolume;ErrorPitch=settings.ErrorPitch;AlertSoundId=settings.AlertSoundId,AlertVolume=settings.AlertVolume;AlertPitch=settings.AlertPitch;Prefix=settings.Prefix;SplitKey=settings.SplitKey,MusicList=settings.MusicList;MuteLocalSound=false;PreviousServer=game.JobId,Rank=0,SaveRank=true;PermRankedBy=3682,Donor=false,Gamepasses={};Assets={},DefaultSettings=i;Groups={},Friends={};CommandsActive={},LaserColor=Color3.fromRGB(255,0,0);PromptedDonor=false,AutomaticRank=false,Items={};SetupData=false}end local function L()return{"\071\114\111\117\112\115","\070\114\105\101\110\100";"\067\111\109\109\097\110\100\115\065\099\116\105\118\101";"\076\097\115\101\114\067\111\108\111\114","\080\114\111\109\112\116\101\100\068\111\110\111\114","\065\117\116\111\109\097\116\105\099\082\097\110\107";"\073\116\101\109\115";"\083\101\116\117\112\068\097\116\097"}end

local defaultSettingsToAdd = {"NoticeSoundId", "NoticeVolume", "NoticePitch", "ErrorSoundId", "ErrorVolume", "ErrorPitch", "AlertSoundId", "AlertVolume", "AlertPitch", "Prefix", "SplitKey"}
local defaultSettings = {}
coroutine.wrap(function()
	if not main.initialized then
		main.client.Signals.Initialized.Event:Wait()
	end
	for i,v in pairs(defaultSettingsToAdd) do
		defaultSettings[v] = settings[v]
	end
end)()
local function getDataTemplate()
	if not main.initialized then
		main.client.Signals.Initialized.Event:Wait()
	end
	return{
		
		DataKey 		= 0;
		DataToUpdate	= true;
		Theme			= settings.Theme;
		NoticeSoundId	= settings.NoticeSoundId;
		NoticeVolume	= settings.NoticeVolume;
		NoticePitch		= settings.NoticePitch;
		ErrorSoundId	= settings.ErrorSoundId;
		ErrorVolume		= settings.ErrorVolume;
		ErrorPitch		= settings.ErrorPitch;
		AlertSoundId	= settings.AlertSoundId;
		AlertVolume		= settings.AlertVolume;
		AlertPitch		= settings.AlertPitch;
		Prefix 			= settings.Prefix;
		SplitKey		= settings.SplitKey;
		MusicList 		= settings.MusicList;
		MuteLocalSound	= false;
		PreviousServer 	= game.JobId;
		Rank 			= 0;
		SaveRank		= true;
		PermRankedBy	= 3682;
		Donor 			= false;
		Gamepasses 		= {};
		Assets 			= {};
		
		DefaultSettings = defaultSettings; --If the owner changes these Settings, then update everyones data to the new setting.
		
		Groups 			= {};
		Friends 		= {};
		CommandsActive 	= {};
		LaserColor 		= Color3.fromRGB(255,0,0);
		PromptedDonor	= false;
		AutomaticRank	= false;
		Items 			= {};
		SetupData		= false;
		
	}
end

local function dataNotToSave()
	return{
		"Groups";
		"Friend";
		"CommandsActive";
		"LaserColor";
		"PromptedDonor";
		"AutomaticRank";
		"Items";
		"SetupData"
	}
end


