-- Decompiled with the Synapse X Luau decompiler.


local v1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
while not v1.Loaded do
	game:GetService("RunService").Heartbeat:Wait();
end;
local v2 = v1.PlayerModule.Get("playergui");
if v1.Settings.ForcedPortrait then
	v2.ScreenOrientation = Enum.ScreenOrientation.Portrait;
elseif v1.Settings.SupportsPortrait then
	v2.ScreenOrientation = Enum.ScreenOrientation.Sensor;
end;
local u1 = Enum.ScreenOrientation.Portrait;
local u2 = nil;
function Check()
	local l__CurrentScreenOrientation__3 = v2.CurrentScreenOrientation;
	v1.Variables.Orientation = l__CurrentScreenOrientation__3;
	v1.Variables.Portrait = l__CurrentScreenOrientation__3 == u1;
	v1.Variables.Landscape = l__CurrentScreenOrientation__3 ~= u1;
	if u2 then
		if u2 ~= l__CurrentScreenOrientation__3 then
			v1.Signal.Fire("Orientation Changed", l__CurrentScreenOrientation__3, u2);
		end;
	else
		v1.Signal.Fire("Orientation Changed", l__CurrentScreenOrientation__3, u2);
	end;
	u2 = l__CurrentScreenOrientation__3;
end;
task.defer(function()
	while true do
		Check();
		v1.Heartbeat(2);	
	end;
end);

