You will be given a Luau script (that has been decompiled). You will rename the…
- User
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-29 13:57:50 -- Luau version 6, Types version 3 -- Time taken: 0.010172 seconds
local CurrentMegaBosses = workspace:WaitForChild("CurrentMegaBosses") local CurrentBosses = workspace:WaitForChild("CurrentBosses") local CurrentEnemies = workspace:WaitForChild("CurrentEnemies") local TweenService_upvr = game:GetService("TweenService") local function _(arg1, arg2) -- Line 9, Named "UpdateStat" --[[ Upvalues[1]: [1]: TweenService_upvr (readonly) ]] task.spawn(function() -- Line 10 --[[ Upvalues[3]: [1]: arg1 (readonly) [2]: arg2 (readonly) [3]: TweenService_upvr (copied, readonly) ]] arg1:WaitForChild("Output").Text = tostring(arg2) task.spawn(function() -- Line 12 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: arg1 (copied, readonly) ]] TweenService_upvr:Create(arg1, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = 360; }):Play() TweenService_upvr:Create(arg1:WaitForChild("Output"), TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = -360; }):Play() TweenService_upvr:Create(arg1:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(255, 255, 255); }):Play() task.delay(0.125, function() -- Line 16 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: arg1 (copied, readonly) ]] TweenService_upvr:Create(arg1:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(0, 0, 0); }):Play() end) task.delay(0.25, function() -- Line 19 --[[ Upvalues[1]: [1]: arg1 (copied, readonly) ]] arg1.Rotation = 0 arg1:WaitForChild("Output").Rotation = 0 end) end) end) end local module_upvr = require(game:GetService("ReplicatedStorage"):WaitForChild("Utl")) function EnemyVisuals(arg1) -- Line 27 --[[ Upvalues[2]: [1]: TweenService_upvr (readonly) [2]: module_upvr (readonly) ]] print(arg1.Name) local Humanoid_upvr = arg1:WaitForChild("Humanoid") local _ = arg1:WaitForChild("Torso") local var22 repeat var22 = task.wait var22((1/60)) var22 = _:FindFirstChildOfClass("BillboardGui") until var22 var22 = _:FindFirstChild("NPCGui") if not var22 then var22 = _:FindFirstChild("VisualEnemy") end local var23_upvr if var22.Name == "VisualEnemy" then local Effect_2 = var22:WaitForChild("Effect") var23_upvr = "Force" local SOME_upvr = Effect_2:WaitForChild(var23_upvr) local Defense_upvr = Effect_2:WaitForChild("Defense") var23_upvr = arg1:FindFirstChild("ForceArcade") if not var23_upvr then var23_upvr = arg1:FindFirstChild("ForceSoul") end local Def_upvr_2 = arg1:WaitForChild("Def") local Value_upvr = Def_upvr_2.Value task.spawn(function() -- Line 10 --[[ Upvalues[3]: [1]: Defense_upvr (readonly) [2]: Value_upvr (readonly) [3]: TweenService_upvr (copied, readonly) ]] Defense_upvr:WaitForChild("Output").Text = tostring(Value_upvr) task.spawn(function() -- Line 12 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: Defense_upvr (copied, readonly) ]] TweenService_upvr:Create(Defense_upvr, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = 360; }):Play() TweenService_upvr:Create(Defense_upvr:WaitForChild("Output"), TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = -360; }):Play() TweenService_upvr:Create(Defense_upvr:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(255, 255, 255); }):Play() task.delay(0.125, function() -- Line 16 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: Defense_upvr (copied, readonly) ]] TweenService_upvr:Create(Defense_upvr:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(0, 0, 0); }):Play() end) task.delay(0.25, function() -- Line 19 --[[ Upvalues[1]: [1]: Defense_upvr (copied, readonly) ]] Defense_upvr.Rotation = 0 Defense_upvr:WaitForChild("Output").Rotation = 0 end) end) end) if var23_upvr then Value_upvr = var23_upvr.Value task.spawn(function() -- Line 10 --[[ Upvalues[3]: [1]: SOME_upvr (readonly) [2]: Value_upvr (readonly) [3]: TweenService_upvr (copied, readonly) ]] SOME_upvr:WaitForChild("Output").Text = tostring(Value_upvr) task.spawn(function() -- Line 12 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: SOME_upvr (copied, readonly) ]] TweenService_upvr:Create(SOME_upvr, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = 360; }):Play() TweenService_upvr:Create(SOME_upvr:WaitForChild("Output"), TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = -360; }):Play() TweenService_upvr:Create(SOME_upvr:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(255, 255, 255); }):Play() task.delay(0.125, function() -- Line 16 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: SOME_upvr (copied, readonly) ]] TweenService_upvr:Create(SOME_upvr:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(0, 0, 0); }):Play() end) task.delay(0.25, function() -- Line 19 --[[ Upvalues[1]: [1]: SOME_upvr (copied, readonly) ]] SOME_upvr.Rotation = 0 SOME_upvr:WaitForChild("Output").Rotation = 0 end) end) end) Value_upvr = var23_upvr:GetPropertyChangedSignal("Value") Value_upvr = Value_upvr:Connect Value_upvr(function() -- Line 48 --[[ Upvalues[3]: [1]: SOME_upvr (readonly) [2]: var23_upvr (readonly) [3]: TweenService_upvr (copied, readonly) ]] local Value_upvr_2 = var23_upvr.Value task.spawn(function() -- Line 10 --[[ Upvalues[3]: [1]: SOME_upvr (readonly) [2]: Value_upvr_2 (readonly) [3]: TweenService_upvr (copied, readonly) ]] SOME_upvr:WaitForChild("Output").Text = tostring(Value_upvr_2) task.spawn(function() -- Line 12 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: SOME_upvr (copied, readonly) ]] TweenService_upvr:Create(SOME_upvr, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = 360; }):Play() TweenService_upvr:Create(SOME_upvr:WaitForChild("Output"), TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = -360; }):Play() TweenService_upvr:Create(SOME_upvr:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(255, 255, 255); }):Play() task.delay(0.125, function() -- Line 16 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: SOME_upvr (copied, readonly) ]] TweenService_upvr:Create(SOME_upvr:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(0, 0, 0); }):Play() end) task.delay(0.25, function() -- Line 19 --[[ Upvalues[1]: [1]: SOME_upvr (copied, readonly) ]] SOME_upvr.Rotation = 0 SOME_upvr:WaitForChild("Output").Rotation = 0 end) end) end) end) end Value_upvr = Def_upvr_2:GetPropertyChangedSignal("Value") Value_upvr = Value_upvr:Connect Value_upvr(function() -- Line 53 --[[ Upvalues[3]: [1]: Defense_upvr (readonly) [2]: Def_upvr_2 (readonly) [3]: TweenService_upvr (copied, readonly) ]] local Value_upvr_5 = Def_upvr_2.Value task.spawn(function() -- Line 10 --[[ Upvalues[3]: [1]: Defense_upvr (readonly) [2]: Value_upvr_5 (readonly) [3]: TweenService_upvr (copied, readonly) ]] Defense_upvr:WaitForChild("Output").Text = tostring(Value_upvr_5) task.spawn(function() -- Line 12 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: Defense_upvr (copied, readonly) ]] TweenService_upvr:Create(Defense_upvr, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = 360; }):Play() TweenService_upvr:Create(Defense_upvr:WaitForChild("Output"), TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = -360; }):Play() TweenService_upvr:Create(Defense_upvr:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(255, 255, 255); }):Play() task.delay(0.125, function() -- Line 16 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: Defense_upvr (copied, readonly) ]] TweenService_upvr:Create(Defense_upvr:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(0, 0, 0); }):Play() end) task.delay(0.25, function() -- Line 19 --[[ Upvalues[1]: [1]: Defense_upvr (copied, readonly) ]] Defense_upvr.Rotation = 0 Defense_upvr:WaitForChild("Output").Rotation = 0 end) end) end) end) Value_upvr = Humanoid_upvr.HealthChanged local Bar_upvr = var22:WaitForChild("Health"):WaitForChild("Bar") Value_upvr = Value_upvr:Connect Value_upvr(function() -- Line 58 --[[ Upvalues[3]: [1]: Humanoid_upvr (readonly) [2]: Bar_upvr (readonly) [3]: module_upvr (copied, readonly) ]] if Humanoid_upvr.MaxHealth < Humanoid_upvr.Health then Humanoid_upvr.Health = Humanoid_upvr.MaxHealth end local var67 = Humanoid_upvr.Health / Humanoid_upvr.MaxHealth * 1 Bar_upvr.Size = UDim2.new(var67, 0, 1, 0) Bar_upvr.BackgroundColor3 = module_upvr.Color((1 - var67) * 255, math.abs(var67) * 255, 0) end) else Defense_upvr = "Name" SOME_upvr = var22:WaitForChild("Health"):WaitForChild("Bar") Defense_upvr = Humanoid_upvr.HealthChanged function Def_upvr_2() -- Line 72 --[[ Upvalues[3]: [1]: Humanoid_upvr (readonly) [2]: SOME_upvr (readonly) [3]: module_upvr (copied, readonly) ]] if Humanoid_upvr.MaxHealth < Humanoid_upvr.Health then Humanoid_upvr.Health = Humanoid_upvr.MaxHealth end local var69 = Humanoid_upvr.Health / Humanoid_upvr.MaxHealth * 1 SOME_upvr.Size = UDim2.new(var69, 0, 1, 0) SOME_upvr.BackgroundColor3 = module_upvr.Color((1 - var69) * 255, math.abs(var69) * 255, 0) end Defense_upvr = Defense_upvr:connect Defense_upvr(Def_upvr_2) end end function BossVisuals(arg1) -- Line 84 --[[ Upvalues[1]: [1]: TweenService_upvr (readonly) ]] local Torso = arg1:WaitForChild("Torso") repeat task.wait((1/60)) until Torso:FindFirstChildOfClass("BillboardGui") local var71_upvr local VisualBoss = Torso:FindFirstChild("VisualBoss") if VisualBoss then local Effect = VisualBoss:WaitForChild("Effect") var71_upvr = "Force" local SOME_upvr_2 = Effect:WaitForChild(var71_upvr) local Defense_upvr_2 = Effect:WaitForChild("Defense") var71_upvr = arg1:FindFirstChild("ForceArcade") if not var71_upvr then var71_upvr = arg1:FindFirstChild("ForceSoul") end local Def_upvr = arg1:WaitForChild("Def") local Value_upvr_6 = Def_upvr.Value task.spawn(function() -- Line 10 --[[ Upvalues[3]: [1]: Defense_upvr_2 (readonly) [2]: Value_upvr_6 (readonly) [3]: TweenService_upvr (copied, readonly) ]] Defense_upvr_2:WaitForChild("Output").Text = tostring(Value_upvr_6) task.spawn(function() -- Line 12 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: Defense_upvr_2 (copied, readonly) ]] TweenService_upvr:Create(Defense_upvr_2, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = 360; }):Play() TweenService_upvr:Create(Defense_upvr_2:WaitForChild("Output"), TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = -360; }):Play() TweenService_upvr:Create(Defense_upvr_2:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(255, 255, 255); }):Play() task.delay(0.125, function() -- Line 16 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: Defense_upvr_2 (copied, readonly) ]] TweenService_upvr:Create(Defense_upvr_2:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(0, 0, 0); }):Play() end) task.delay(0.25, function() -- Line 19 --[[ Upvalues[1]: [1]: Defense_upvr_2 (copied, readonly) ]] Defense_upvr_2.Rotation = 0 Defense_upvr_2:WaitForChild("Output").Rotation = 0 end) end) end) if var71_upvr then Value_upvr_6 = var71_upvr.Value task.spawn(function() -- Line 10 --[[ Upvalues[3]: [1]: SOME_upvr_2 (readonly) [2]: Value_upvr_6 (readonly) [3]: TweenService_upvr (copied, readonly) ]] SOME_upvr_2:WaitForChild("Output").Text = tostring(Value_upvr_6) task.spawn(function() -- Line 12 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: SOME_upvr_2 (copied, readonly) ]] TweenService_upvr:Create(SOME_upvr_2, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = 360; }):Play() TweenService_upvr:Create(SOME_upvr_2:WaitForChild("Output"), TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = -360; }):Play() TweenService_upvr:Create(SOME_upvr_2:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(255, 255, 255); }):Play() task.delay(0.125, function() -- Line 16 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: SOME_upvr_2 (copied, readonly) ]] TweenService_upvr:Create(SOME_upvr_2:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(0, 0, 0); }):Play() end) task.delay(0.25, function() -- Line 19 --[[ Upvalues[1]: [1]: SOME_upvr_2 (copied, readonly) ]] SOME_upvr_2.Rotation = 0 SOME_upvr_2:WaitForChild("Output").Rotation = 0 end) end) end) Value_upvr_6 = var71_upvr:GetPropertyChangedSignal("Value") Value_upvr_6 = Value_upvr_6:Connect Value_upvr_6(function() -- Line 103 --[[ Upvalues[3]: [1]: SOME_upvr_2 (readonly) [2]: var71_upvr (readonly) [3]: TweenService_upvr (copied, readonly) ]] local Value_upvr_4 = var71_upvr.Value task.spawn(function() -- Line 10 --[[ Upvalues[3]: [1]: SOME_upvr_2 (readonly) [2]: Value_upvr_4 (readonly) [3]: TweenService_upvr (copied, readonly) ]] SOME_upvr_2:WaitForChild("Output").Text = tostring(Value_upvr_4) task.spawn(function() -- Line 12 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: SOME_upvr_2 (copied, readonly) ]] TweenService_upvr:Create(SOME_upvr_2, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = 360; }):Play() TweenService_upvr:Create(SOME_upvr_2:WaitForChild("Output"), TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = -360; }):Play() TweenService_upvr:Create(SOME_upvr_2:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(255, 255, 255); }):Play() task.delay(0.125, function() -- Line 16 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: SOME_upvr_2 (copied, readonly) ]] TweenService_upvr:Create(SOME_upvr_2:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(0, 0, 0); }):Play() end) task.delay(0.25, function() -- Line 19 --[[ Upvalues[1]: [1]: SOME_upvr_2 (copied, readonly) ]] SOME_upvr_2.Rotation = 0 SOME_upvr_2:WaitForChild("Output").Rotation = 0 end) end) end) end) end Value_upvr_6 = Def_upvr:GetPropertyChangedSignal("Value") Value_upvr_6 = Value_upvr_6:Connect Value_upvr_6(function() -- Line 108 --[[ Upvalues[3]: [1]: Defense_upvr_2 (readonly) [2]: Def_upvr (readonly) [3]: TweenService_upvr (copied, readonly) ]] local Value_upvr_3 = Def_upvr.Value task.spawn(function() -- Line 10 --[[ Upvalues[3]: [1]: Defense_upvr_2 (readonly) [2]: Value_upvr_3 (readonly) [3]: TweenService_upvr (copied, readonly) ]] Defense_upvr_2:WaitForChild("Output").Text = tostring(Value_upvr_3) task.spawn(function() -- Line 12 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: Defense_upvr_2 (copied, readonly) ]] TweenService_upvr:Create(Defense_upvr_2, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = 360; }):Play() TweenService_upvr:Create(Defense_upvr_2:WaitForChild("Output"), TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { Rotation = -360; }):Play() TweenService_upvr:Create(Defense_upvr_2:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(255, 255, 255); }):Play() task.delay(0.125, function() -- Line 16 --[[ Upvalues[2]: [1]: TweenService_upvr (copied, readonly) [2]: Defense_upvr_2 (copied, readonly) ]] TweenService_upvr:Create(Defense_upvr_2:WaitForChild("Output"), TweenInfo.new(0.125, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { TextStrokeColor3 = Color3.fromRGB(0, 0, 0); }):Play() end) task.delay(0.25, function() -- Line 19 --[[ Upvalues[1]: [1]: Defense_upvr_2 (copied, readonly) ]] Defense_upvr_2.Rotation = 0 Defense_upvr_2:WaitForChild("Output").Rotation = 0 end) end) end) end) end end for _, v_upvr in pairs(CurrentEnemies:GetChildren()) do if v_upvr:IsA("Model") then task.spawn(function() -- Line 117 --[[ Upvalues[1]: [1]: v_upvr (readonly) ]] EnemyVisuals(v_upvr) end) end end CurrentEnemies.ChildAdded:Connect(function(arg1) -- Line 123 if arg1:IsA("Model") then task.spawn(function() -- Line 125 --[[ Upvalues[1]: [1]: arg1 (readonly) ]] EnemyVisuals(arg1) end) end end) for _, v_2_upvr in pairs(CurrentBosses:GetChildren()) do if v_2_upvr:IsA("Model") then task.spawn(function() -- Line 134 --[[ Upvalues[1]: [1]: v_2_upvr (readonly) ]] BossVisuals(v_2_upvr) end) end end CurrentBosses.ChildAdded:Connect(function(arg1) -- Line 140 if arg1:IsA("Model") then task.spawn(function() -- Line 142 --[[ Upvalues[1]: [1]: arg1 (readonly) ]] BossVisuals(arg1) end) end end) for _, v_3_upvr in pairs(CurrentMegaBosses:GetChildren()) do if v_3_upvr:IsA("Model") then task.spawn(function() -- Line 151 --[[ Upvalues[1]: [1]: v_3_upvr (readonly) ]] BossVisuals(v_3_upvr) end) end end CurrentMegaBosses.ChildAdded:Connect(function(arg1) -- Line 157 if arg1:IsA("Model") then task.spawn(function() -- Line 159 --[[ Upvalues[1]: [1]: arg1 (readonly) ]] BossVisuals(arg1) end) end end) Assistant:
- Assistant