System: You will be given a Luau script (that has been decompiled). You will rename the variables and functions to sound better, make the script more coherent, and add comments to areas of the script. Return the fixed script without adding ``` as we handle that. If no script has been given, do not produce any output. Do not respond with anything but the script
User: -- Decompiler will be improved soon!
-- Decompiled with Konstant V2.1, a fast Luau decompiler made in Luau by plusgiant5 (https://discord.gg/wyButjTMhM)
-- Decompiled on 2024-12-08 16:54:54
-- Luau version 6, Types version 3
-- Time taken: 0.005766 seconds

local module = {}
local Parent_upvr = script.Parent
local Armor_upvr = Parent_upvr.Armor
local Wings_upvr = Parent_upvr.Wings
local Hats_upvr = Parent_upvr.Hats
local Tools_upvr = Parent_upvr.Tools
local function Visible_upvr(arg1, arg2) -- Line 12, Named "Visible"
	if not arg2 or not arg1:GetDescendants() then
	end
	for _, v in pairs(arg1:GetChildren()) do
		if v:IsA("BasePart") or v:IsA("MeshPart") then
			v.Transparency = 0
			local Original_Color = v:GetAttribute("Original_Color")
			if not Original_Color then
				Original_Color = v.Color
			end
			v.Color = Original_Color
			local Original_Material = v:GetAttribute("Original_Material")
			if not Original_Material then
				Original_Material = v.Material
			end
			v.Material = Original_Material
		end
	end
end
local function Invisible_upvr(arg1, arg2) -- Line 23, Named "Invisible"
	if not arg2 or not arg1:GetDescendants() then
	end
	for _, v_2 in pairs(arg1:GetChildren()) do
		if v_2:IsA("BasePart") then
			v_2.Transparency = 1
		end
	end
end
local function Reset_upvr() -- Line 30, Named "Reset"
	--[[ Upvalues[6]:
		[1]: Invisible_upvr (readonly)
		[2]: Armor_upvr (readonly)
		[3]: Tools_upvr (readonly)
		[4]: Wings_upvr (readonly)
		[5]: Hats_upvr (readonly)
		[6]: Parent_upvr (readonly)
	]]
	Invisible_upvr(Armor_upvr, true)
	Invisible_upvr(Tools_upvr, true)
	Invisible_upvr(Wings_upvr, true)
	Invisible_upvr(Hats_upvr, true)
	for _, v_3 in pairs(Parent_upvr:GetChildren()) do
		if v_3:IsA("BasePart") then
			v_3.Color = Color3.fromRGB(253, 234, 141)
			v_3.Material = Enum.Material.Plastic
		end
	end
	Parent_upvr.Head.Fake_Head.LumenylFace.Transparency = 1
	Parent_upvr.Head.Fake_Head.InsanityFace.Transparency = 1
	Parent_upvr.Head.Fake_Head.Transparency = 0
	Parent_upvr.Head.Fake_Head.Material = Enum.Material.Plastic
end
function module.Lumenyl(arg1, arg2) -- Line 49
	--[[ Upvalues[8]:
		[1]: Reset_upvr (readonly)
		[2]: Visible_upvr (readonly)
		[3]: Armor_upvr (readonly)
		[4]: Wings_upvr (readonly)
		[5]: Tools_upvr (readonly)
		[6]: Hats_upvr (readonly)
		[7]: Parent_upvr (readonly)
		[8]: Invisible_upvr (readonly)
	]]
	Reset_upvr()
	Visible_upvr(Armor_upvr.Lumenyl, true)
	Visible_upvr(Wings_upvr.Lumenyl, true)
	Visible_upvr(Tools_upvr.Lumenyl, true)
	Visible_upvr(Hats_upvr.Lumenyl, true)
	Parent_upvr.Head.Fake_Head.LumenylFace.Transparency = 0
	if arg2 then
		Invisible_upvr(Armor_upvr.Lumenyl, true)
		for _, v_4 in pairs(Parent_upvr:GetChildren()) do
			if v_4:IsA("BasePart") then
				v_4.Material = Enum.Material.ForceField
			end
		end
		for _, v_5 in pairs(Hats_upvr.Lumenyl:GetChildren()) do
			if v_5:IsA("BasePart") then
				v_5.Material = Enum.Material.ForceField
			end
		end
		for _, v_6 in pairs(Wings_upvr.Lumenyl["Lumenyl Wings"]:GetDescendants()) do
			if v_6:IsA("BasePart") or v_6:IsA("MeshPart") then
				v_6.Material = Enum.Material.ForceField
			end
		end
		Parent_upvr.Head.Fake_Head.Material = Enum.Material.ForceField
		Parent_upvr.Head.Fake_Head.Transparency = 0.8
		Parent_upvr.Head.Fake_Head.LumenylFace.Transparency = 1
	end
	if arg1 then
		Invisible_upvr(Tools_upvr, true)
	end
	if not arg2 then
		for _, v_7 in pairs(Wings_upvr.Lumenyl["Lumenyl Wings"]:GetDescendants()) do
			if v_7:IsA("BasePart") then
				v_7.Color = Color3.fromRGB(188, 155, 93)
				v_7.Material = Enum.Material.Neon
			end
		end
	end
	local Lumenilialis = Tools_upvr.Lumenyl.Lumenilialis.Lumenilialis
	Lumenilialis.Color = Color3.fromRGB(202, 203, 209)
	Lumenilialis.Material = Enum.Material.Ice
	Lumenilialis.Grey.Color = Color3.fromRGB(99, 95, 98)
	Lumenilialis.Grey.Material = Enum.Material.Metal
	Lumenilialis.Neon.Color = Color3.fromRGB(253, 234, 141)
	Lumenilialis.Neon.Material = Enum.Material.Neon
	Lumenilialis.ShinyYellow.Color = Color3.fromRGB(253, 234, 141)
	Lumenilialis.ShinyYellow.Material = Enum.Material.SmoothPlastic
	Parent_upvr.Resources["Sword Trail"].Color = ColorSequence.new(Color3.fromRGB(248, 217, 109))
end
function module.Insanity() -- Line 130
	--[[ Upvalues[7]:
		[1]: Reset_upvr (readonly)
		[2]: Parent_upvr (readonly)
		[3]: Visible_upvr (readonly)
		[4]: Armor_upvr (readonly)
		[5]: Wings_upvr (readonly)
		[6]: Tools_upvr (readonly)
		[7]: Hats_upvr (readonly)
	]]
	Reset_upvr()
	Parent_upvr.Head.Fake_Head.InsanityFace.Transparency = 0
	Visible_upvr(Armor_upvr.Insanity, true)
	Visible_upvr(Wings_upvr.Lumenyl, true)
	Visible_upvr(Tools_upvr.Lumenyl, true)
	Visible_upvr(Hats_upvr.Lumenyl, true)
	Hats_upvr.Lumenyl.Crown.Transparency = 1
	Hats_upvr.Fallcry.Horn1.Transparency = 0
	Hats_upvr.Fallcry.Horn2.Transparency = 0
	Hats_upvr.Fallcry.Horn3.Transparency = 0
	local Lumenilialis_2 = Tools_upvr.Lumenyl.Lumenilialis.Lumenilialis
	Lumenilialis_2.Color = Color3.fromRGB(224, 178, 208)
	Lumenilialis_2.Material = Enum.Material.Ice
	Lumenilialis_2.Grey.Color = Color3.fromRGB(117, 0, 0)
	Lumenilialis_2.Grey.Material = Enum.Material.Metal
	Lumenilialis_2.Neon.Color = Color3.fromRGB(255, 0, 0)
	Lumenilialis_2.Neon.Material = Enum.Material.Neon
	Lumenilialis_2.ShinyYellow.Color = Color3.fromRGB(117, 0, 0)
	Lumenilialis_2.ShinyYellow.Material = Enum.Material.Basalt
	Parent_upvr.Resources["Sword Trail"].Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(248, 217, 109)), ColorSequenceKeypoint.new(0.25, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0))})
	Wings_upvr.Lumenyl["Lumenyl Wings"].Inner.Wing1A.Color = Color3.fromRGB(117, 0, 0)
	Wings_upvr.Lumenyl["Lumenyl Wings"].Inner.Wing1A.Material = Enum.Material.Basalt
	Wings_upvr.Lumenyl["Lumenyl Wings"].Inner.Wing3A.Color = Color3.fromRGB(117, 0, 0)
	Wings_upvr.Lumenyl["Lumenyl Wings"].Inner.Wing3A.Material = Enum.Material.Basalt
	Wings_upvr.Lumenyl["Lumenyl Wings"].Inner.Wing5A.Color = Color3.fromRGB(117, 0, 0)
	Wings_upvr.Lumenyl["Lumenyl Wings"].Inner.Wing5A.Material = Enum.Material.Basalt
	Wings_upvr.Lumenyl["Lumenyl Wings"].Inner.Wing6A.Color = Color3.fromRGB(117, 0, 0)
	Wings_upvr.Lumenyl["Lumenyl Wings"].Inner.Wing6A.Material = Enum.Material.Basalt
	Wings_upvr.Lumenyl["Lumenyl Wings"].Outer.Wing1B.Color = Color3.fromRGB(117, 0, 0)
	Wings_upvr.Lumenyl["Lumenyl Wings"].Outer.Wing1B.Material = Enum.Material.Basalt
	Wings_upvr.Lumenyl["Lumenyl Wings"].Outer.Wing3B.Color = Color3.fromRGB(117, 0, 0)
	Wings_upvr.Lumenyl["Lumenyl Wings"].Outer.Wing3B.Material = Enum.Material.Basalt
	Wings_upvr.Lumenyl["Lumenyl Wings"].Outer.Wing5B.Color = Color3.fromRGB(117, 0, 0)
	Wings_upvr.Lumenyl["Lumenyl Wings"].Outer.Wing5B.Material = Enum.Material.Basalt
	Wings_upvr.Lumenyl["Lumenyl Wings"].Outer.Wing6B.Color = Color3.fromRGB(117, 0, 0)
	Wings_upvr.Lumenyl["Lumenyl Wings"].Outer.Wing6B.Material = Enum.Material.Basalt
end
function module.Fallcry(arg1) -- Line 208
	--[[ Upvalues[6]:
		[1]: Reset_upvr (readonly)
		[2]: Visible_upvr (readonly)
		[3]: Armor_upvr (readonly)
		[4]: Wings_upvr (readonly)
		[5]: Hats_upvr (readonly)
		[6]: Parent_upvr (readonly)
	]]
	-- KONSTANTWARNING: Variable analysis failed. Output will have some incorrect variable assignments
	Reset_upvr()
	Visible_upvr(Armor_upvr.Fallcry, true)
	Visible_upvr(Wings_upvr.Fallcry, true)
	Visible_upvr(Hats_upvr.Fallcry, true)
	Parent_upvr.Resources["Sword Trail"].Enabled = false
	for _, v_8 in pairs(Armor_upvr.Fallcry:GetDescendants()) do
		local var73
		if var73 == "Shiny" then
			local function INLINED() -- Internal function, doesn't exist in bytecode
				var73 = Color3.fromRGB(253, 234, 141)
				return var73
			end
			if not arg1 or not INLINED() then
				var73 = v_8:GetAttribute("Normal")
				if not var73 then
					var73 = Color3.fromRGB(120, 60, 60)
				end
			end
			v_8.Color = var73
			local function INLINED_2() -- Internal function, doesn't exist in bytecode
				var73 = Enum.Material.Neon
				return var73
			end
			if not arg1 or not INLINED_2() then
				var73 = Enum.Material.SmoothPlastic
			end
			v_8.Material = var73
		end
		if v_8.Name == "Horn" then
			if not arg1 or not Color3.fromRGB(253, 234, 141) then
			end
			v_8.Color = Color3.fromRGB(0, 32, 96)
		end
	end
	for _, v_9 in pairs(Parent_upvr:GetChildren()) do
		if v_9:IsA("BasePart") then
			v_9.Color = Color3.fromRGB(0, 0, 0)
		end
	end
	Parent_upvr.Head.Fake_Head.Transparency = 1
	if Parent_upvr.Head.Fake_Head:FindFirstChildOfClass("Decal") then
		Parent_upvr.Head.Fake_Head:FindFirstChildOfClass("Decal").Transparency = 1
	end
end
return module
Assistant: