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: --decompiled with swift using medal decompiler --MEDAL GITHUB: https://github.com/shrimp-nz/medal --Give them a star!
local v_u_1 = script local v2 = script:WaitForChild("Amount") local v3 = { ["ActivateTime"] = 1.25, ["RiseTime"] = 7.5, ["Duration"] = 10, ["PlatformHeight"] = 40, ["DisperseRange"] = 80 } local v4 = 0 local v5 = {} for _ = 1, v2.Value do local v6 = Instance.new("Part") local v7 = v3.PlatformHeight v6.Size = Vector3.new(10, v7, 10) v6.Color = Color3.fromRGB(75, 75, 75) v6.Material = Enum.Material.Slate v6.Anchored = true v6.CFrame = CFrame.new(0, -v3.PlatformHeight * 0.5, 0) * CFrame.Angles(0, math.rad(v4), 0) v6.CFrame = v6.CFrame * CFrame.new(0, 0, -v3.DisperseRange) v6.CFrame = CFrame.new(v6.CFrame.X, v6.CFrame.Y, v6.CFrame.Z) game:GetService("TweenService"):Create(v6, TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut), { ["CFrame"] = CFrame.new(v6.CFrame.X, -v3.PlatformHeight * 0.3, v6.CFrame.Z) }):Play() v6.Parent = workspace.JunkHolder table.insert(v5, v6) v4 = v4 + 360 / v2.Value wait(0.1) end wait(v3.ActivateTime) for _, v8 in pairs(v5) do game:GetService("TweenService"):Create(v8, TweenInfo.new(5, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut), { ["CFrame"] = CFrame.new(v8.CFrame.X, v3.PlatformHeight / 2, v8.CFrame.Z), ["Orientation"] = v8.Orientation }):Play() end wait(v3.Duration + v3.ActivateTime) for _, v_u_9 in pairs(v5) do game:GetService("TweenService"):Create(v_u_9, TweenInfo.new(7.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut), { ["CFrame"] = CFrame.new(v_u_9.CFrame.X, -v3.PlatformHeight / 2, v_u_9.CFrame.Z) }):Play() delay(7.5, function() -- upvalues: (copy) v_u_9 v_u_9:Destroy() end) end delay(7.5, function() -- upvalues: (copy) v_u_1 v_u_1:Destroy() end)
Assistant:
- Assistant
local scriptInstance = script local amountSetting = script:WaitForChild("Amount") local platformSettings = { ["ActivationDuration"] = 1.25, ["RisingDuration"] = 7.5, ["TotalDuration"] = 10, ["PlatformHeight"] = 40, ["DisperseDistance"] = 80 } local angleIncrement = 0 local platformParts = {}