local i=require(game.ReplicatedStorage:WaitForChild("\082\101\115\111\117\114\099\101\115"))while not i.Loaded do(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:Wait()end function Update()local B=i.StatService.Get()if not B then return end i.Settings.VFXEnabled=B.Settings.VFX==1 i.Settings.SFXEnabled=B.Settings.SFX==1 i.Settings.MusicEnabled=B.Settings.Music==1 end Update();(i.Signal.Fired("\083\116\097\116 \067\104\097\110\103\101\100")):Connect(function(i)if i=="\083\101\116\116\105\110\103\115"then Update()end end)


local v1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
while not v1.Loaded do
	game:GetService("RunService").Heartbeat:Wait();
end;
function Update()
	local v2 = v1.StatService.Get();
	if not v2 then
		return;
	end;
	v1.Settings.VFXEnabled = v2.Settings.VFX == 1;
	v1.Settings.SFXEnabled = v2.Settings.SFX == 1;
	v1.Settings.MusicEnabled = v2.Settings.Music == 1;
end;
Update();
v1.Signal.Fired("Stat Changed"):Connect(function(p1)
	if p1 == "Settings" then
		Update();
	end;
end);

