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 Konstant V2.1, a fast Luau decompiler made in Luau by plusgiant5 (https://discord.gg/wyButjTMhM) -- Decompiled on 2024-11-11 14:56:20 -- Luau version 6, Types version 3 -- Time taken: 0.001087 seconds
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false) local CurrentCamera_upvr = workspace.CurrentCamera local Rumble_upvr = game:GetService("ReplicatedStorage").Values.Rumble local TweenCamera_upvr = game:GetService("ReplicatedStorage").Values.TweenCamera CurrentCamera_upvr.CameraType = Enum.CameraType.Scriptable CurrentCamera_upvr.CFrame = game:GetService("ReplicatedStorage").Flashbacks.Flashback.CFrame local Humanoid_upvr = game:GetService("Players").LocalPlayer.Character.Humanoid Rumble_upvr:GetPropertyChangedSignal("Value"):Connect(function() -- Line 14 --[[ Upvalues[3]: [1]: Rumble_upvr (readonly) [2]: CurrentCamera_upvr (readonly) [3]: Humanoid_upvr (readonly) ]] if Rumble_upvr.Value == true then script.Rumble.Disabled = false wait(3) CurrentCamera_upvr.CameraType = Enum.CameraType.Attach else script.Rumble.Disabled = true wait(5) CurrentCamera_upvr.CameraSubject = Humanoid_upvr CurrentCamera_upvr.CameraType = "Custom" game:GetService("StarterGui"):SetCore("ResetButtonCallback", true) script:Destroy() end end) local TweenService_upvr = game:GetService("TweenService") local EndFlashback_upvr = game:GetService("ReplicatedStorage").Flashbacks.EndFlashback TweenCamera_upvr:GetPropertyChangedSignal("Value"):Connect(function() -- Line 29 --[[ Upvalues[4]: [1]: TweenCamera_upvr (readonly) [2]: TweenService_upvr (readonly) [3]: CurrentCamera_upvr (readonly) [4]: EndFlashback_upvr (readonly) ]] if TweenCamera_upvr.Value == true then local any_Create_result1 = TweenService_upvr:Create(CurrentCamera_upvr, TweenInfo.new(20, Enum.EasingStyle.Linear), { CFrame = EndFlashback_upvr.CFrame; }) any_Create_result1:Play() any_Create_result1.Completed:Wait() end CurrentCamera_upvr.CameraType = Enum.CameraType.Track CurrentCamera_upvr.CameraSubject = EndFlashback_upvr end) Assistant:
- Assistant
-- Disable the player's reset button in the GUI game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
-- Set up references for camera and values local currentCamera = workspace.CurrentCamera local rumbleValue = game:GetService("ReplicatedStorage").Values.Rumble local tweenCameraValue = game:GetService("ReplicatedStorage").Values.TweenCamera local humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid