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: -- Decompiled with Konstant V2.1, a fast Luau decompiler made in Luau by plusgiant5 (https://discord.gg/wyButjTMhM)
-- Decompiled on 2024-11-11 14:56:12
-- Luau version 6, Types version 3
-- Time taken: 0.003779 seconds

local LocalPlayer_upvr = game:GetService("Players").LocalPlayer
local Character = LocalPlayer_upvr.Character
if not Character then
	Character = LocalPlayer_upvr.CharacterAdded:Wait()
end
local Humanoid_upvr = Character:WaitForChild("Humanoid")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Events_upvr = ReplicatedStorage:WaitForChild("Events")
local Values_upvr = ReplicatedStorage:WaitForChild("Values")
local Fade_upvr = Values_upvr:WaitForChild("Fade")
local Parent = script.Parent
local Score_upvr = Parent:WaitForChild("Score")
local Floppy_upvr = Parent:WaitForChild("Floppy")
local MyPlayer_upvr = Parent:WaitForChild("MyPlayer")
local tbl_upvr = {"Begin to be now what you will be hereafter", "Always do your best.What you plant now,you will harvest later", "Affirmation without discipline is the beginnng of delusion", "I can, therefore I am", "Act as if what you do makes a difference. It does", "If you can dream it, you can do it", "Be thine own palace, or the world's thy jail"}
local tbl_upvr_2 = {"--William James--", "--Og Mandino--", "--Jim Rohn--", "--Simone Weil--", "--William James--", "--Walt Disney--", "--John Donne--"}
local var14_upvw = false
local function _() -- Line 37, Named "kick"
	--[[ Upvalues[2]:
		[1]: var14_upvw (read and write)
		[2]: Events_upvr (readonly)
	]]
	if not var14_upvw then
		var14_upvw = true
		Events_upvr.Request:FireServer()
	end
end
LocalPlayer_upvr:WaitForChild("Backpack").ChildAdded:connect(function(arg1) -- Line 44
	--[[ Upvalues[2]:
		[1]: var14_upvw (read and write)
		[2]: Events_upvr (readonly)
	]]
	if arg1:IsA("HopperBin") and not var14_upvw then
		var14_upvw = true
		Events_upvr.Request:FireServer()
	end
end)
Character.ChildRemoved:connect(function(arg1) -- Line 50
	--[[ Upvalues[2]:
		[1]: var14_upvw (read and write)
		[2]: Events_upvr (readonly)
	]]
	if arg1:IsA("Humanoid") and not var14_upvw then
		var14_upvw = true
		Events_upvr.Request:FireServer()
	end
end)
Character:WaitForChild("HumanoidRootPart").ChildAdded:connect(function(arg1) -- Line 58
	--[[ Upvalues[2]:
		[1]: var14_upvw (read and write)
		[2]: Events_upvr (readonly)
	]]
	if arg1:IsA("BodyVelocity") or arg1:IsA("BodyPosition") or arg1:IsA("BodyGyro") then
		if not var14_upvw then
			var14_upvw = true
			Events_upvr.Request:FireServer()
		end
	end
end)
local function _() -- Line 67, Named "updateScores"
	--[[ Upvalues[2]:
		[1]: Score_upvr (readonly)
		[2]: Values_upvr (readonly)
	]]
	Score_upvr:FindFirstChild("GreenScoreBox").Frame.TextLabel.Text = Values_upvr.Wins.Value
	Score_upvr:FindFirstChild("RedScoreBox").Frame.TextLabel.Text = Values_upvr.Fails.Value
end
Score_upvr:FindFirstChild("GreenScoreBox").Frame.TextLabel.Text = Values_upvr.Wins.Value
Score_upvr:FindFirstChild("RedScoreBox").Frame.TextLabel.Text = Values_upvr.Fails.Value
local Subtitle_upvr = Parent:WaitForChild("Subtitle")
Values_upvr.Sub:GetPropertyChangedSignal("Value"):Connect(function() -- Line 74, Named "updateSub"
	--[[ Upvalues[2]:
		[1]: Values_upvr (readonly)
		[2]: Subtitle_upvr (readonly)
	]]
	if Values_upvr.Sub.Value ~= "" then
		Subtitle_upvr.TextLabel.Text = Values_upvr.Sub.Value
		for i = 1, 0, -0.25 do
			wait(0.05)
			Subtitle_upvr:WaitForChild("TextLabel").TextTransparency = i
		end
		wait(Values_upvr.Sub.Delay.Value)
		for i_2 = 0, 1, 0.25 do
			wait(0.05)
			Subtitle_upvr:WaitForChild("TextLabel").TextTransparency = i_2
		end
	end
end)
local Pain_upvr = Parent:WaitForChild("Pain")
;(function() -- Line 91, Named "onSpawn"
	--[[ Upvalues[3]:
		[1]: Pain_upvr (readonly)
		[2]: MyPlayer_upvr (readonly)
		[3]: LocalPlayer_upvr (readonly)
	]]
	Pain_upvr.Visible = true
	MyPlayer_upvr:WaitForChild("Player").Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..LocalPlayer_upvr.Name
	Pain_upvr.Transparency = 0
	for _ = 1, 10 do
		wait(0.1)
		Pain_upvr.Transparency += 0.1
	end
	Pain_upvr:Destroy()
end)()
Fade_upvr:GetPropertyChangedSignal("Value"):connect(function() -- Line 104
	--[[ Upvalues[2]:
		[1]: Fade_upvr (readonly)
		[2]: Floppy_upvr (readonly)
	]]
	if Fade_upvr.Value == false then
		for _ = 1, 20 do
			wait(0.1)
			Floppy_upvr.Transparency += 0.05
		end
		Floppy_upvr.Visible = false
	elseif Fade_upvr.Value == true then
		Floppy_upvr.Visible = true
		for _ = 1, 20 do
			wait(0.1)
			Floppy_upvr.Transparency -= 0.05
		end
	end
end)
Humanoid_upvr.HealthChanged:connect(function() -- Line 120, Named "updateHealth"
	--[[ Upvalues[2]:
		[1]: MyPlayer_upvr (readonly)
		[2]: Humanoid_upvr (readonly)
	]]
	MyPlayer_upvr.HealthBox.Size = UDim2.new(Humanoid_upvr.Health * 0.006, 0, 0.400000006, 0)
	if Humanoid_upvr.Health <= 25 then
		MyPlayer_upvr.HealthBox.BackgroundColor = BrickColor.new("Bright red")
	else
		MyPlayer_upvr.HealthBox.BackgroundColor = BrickColor.new("Bright green")
	end
end)
local DeathQuote_upvr = Parent:WaitForChild("DeathQuote")
Humanoid_upvr.Died:connect(function() -- Line 131, Named "onDeath"
	--[[ Upvalues[4]:
		[1]: tbl_upvr (readonly)
		[2]: DeathQuote_upvr (readonly)
		[3]: tbl_upvr_2 (readonly)
		[4]: Floppy_upvr (readonly)
	]]
	local randint = math.random(1, #tbl_upvr)
	DeathQuote_upvr.Maker.Text = tbl_upvr_2[randint]
	DeathQuote_upvr.Quote.Text = tbl_upvr[randint]
	DeathQuote_upvr.Visible = true
	Floppy_upvr.Visible = true
	for _ = 1, 10 do
		wait(0.1)
		Floppy_upvr.Transparency -= 0.1
	end
end)
Assistant: