-- Decompiled with the Synapse X Luau decompiler.

 --NOTE: Currently in beta! Not representative of final product.
local u1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
while (not u1.Loaded) do
	game:GetService("RunService").Heartbeat:Wait();
end
local u2 = Random.new();
local u3 = {
	"Energy",
	"Gems",
	"Native"
};
local t_Parent_1 = script.Parent;
local f_CreatePower;
f_CreatePower = function() -- [line 9] CreatePower
	--[[
		Upvalues: 
			[1] = u1
			[2] = u3
			[3] = t_Parent_1
			[4] = u2
	--]]
	local v1 = u1.Directory.Powers[u1.Functions.table.random(u3)];
	local v2 = u1.Functions.table.random(v1.tiers);
	local v3 = script.PowerFrame:Clone();
	local v4 = 0 + ((v3.AbsoluteSize.X * 0.5) / t_Parent_1.AbsoluteSize.X);
	local v5 = 1 - ((v3.AbsoluteSize.X * 0.5) / t_Parent_1.AbsoluteSize.X);
	local v6 = 0 + ((v3.AbsoluteSize.Y * 0.5) / t_Parent_1.AbsoluteSize.Y);
	local v7 = 1 - ((v3.AbsoluteSize.Y * 0.5) / t_Parent_1.AbsoluteSize.Y);
	v3.power.Image = v1.icon;
	v3.power.level.Text = v2.title;
	v3.Position = UDim2.new(u2:NextNumber(v4, v5), 0, u2:NextNumber(v6, v7), 0);
	v3.Parent = t_Parent_1;
	local v8 = coroutine.wrap;
	local u4 = v3;
	v8(function() -- [line 24] anonymous function
		--[[
			Upvalues: 
				[1] = u4
				[2] = u1
		--]]
		local v9 = u4.Size;
		u4.Size = UDim2.new();
		local v10 = u1.Functions.Tween;
		local v11 = u4;
		local v12 = {
			1,
			7,
			1,
			0,
			true
		};
		local v13 = {};
		v13.Size = v9;
		v13.Rotation = 0;
		v10(v11, v12, v13).Completed:Wait();
		local v14 = u1.Functions.Tween;
		local v15 = u4;
		local v16 = {
			1,
			5,
			1,
			0,
			true
		};
		local v17 = {};
		v17.Size = UDim2.new();
		v14(v15, v16, v17).Completed:Wait();
		u4:Destroy();
	end)();
end;
CreatePower = f_CreatePower;
while true do
	CreatePower();
	u1.Functions.Wait(0.5);
end
