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-14 14:03:30 -- Luau version 6, Types version 3 -- Time taken: 0.001321 seconds
local CurrentCamera = game.Workspace.CurrentCamera wait(2.7) CurrentCamera.CameraSubject = game.Workspace.Flashback CurrentCamera.CameraType = "Attach" wait(1) game.Workspace.Music:stop() game.Workspace.Winds:Play() game.Workspace.MainSC.Hea.Face.Scripty.Disabled = false game.Workspace.Sub.Value = true game.Workspace.SubText.Value = "Thank you Mr...(You) for taking the time to visit our facility" wait(6) game.Workspace.MainSC.Hea.Face.Scripty.Disabled = true wait(2) game.Workspace.MainSC.Hea.Face.Scripty.Disabled = false game.Workspace.Sub.Value = true game.Workspace.SubText.Value = "As you can see all of our workers are hard working.." wait(6) game.Workspace.MainSC.Hea.Face.Scripty.Disabled = true wait(2) game.Workspace.MainSC.Hea.Face.Scripty.Disabled = false game.Workspace.Sub.Value = true game.Workspace.SubText.Value = "Would you Like to see what we've been working on for a long time" wait(6) game.Workspace.MainSC.Hea.Face.Scripty.Disabled = true wait(2) game.Workspace.Sub.Value = true game.Workspace.SubText.Value = "You: Sure Lets go.." wait(8) game.Workspace.MainSC.Hea.Face.Scripty.Disabled = false game.Workspace.Sub.Value = true game.Workspace.SubText.Value = "Great! Just Follow me" wait(4.5) game.Workspace.MainSC.Hea.Face.Scripty.Disabled = true wait(2) game.Workspace.Sub.Value = true wait(0.001) game.Workspace.Cam1.Value = true game.Workspace.SubText.Value = "Walks" wait(20) game.Workspace.Sub.Value = false CurrentCamera.CameraType = "Track" script.Parent.Rumble.Disabled = false game.Workspace.Explosion:Play() wait(0.001) game.Workspace.Explosion:Play() wait(3) CurrentCamera.CameraType = "Attach" script.Parent.Rumble.Disabled = true game.Workspace.Cam1.Value = false game.Workspace.Subtitletime.Value = 2 game.Workspace.Sub.Value = true game.Workspace.SubText.Value = "YOU: WHAT WAS THAT!!!" wait(5) game.Workspace.Subtitletime.Value = 5 game.Workspace.Sub.Value = true game.Workspace.SubText.Value = "OUR PROJECT HAS ESCAPED RUN!!!" game.Workspace.Explosion:Play() wait(0.001) game.Workspace.Winds:stop() game.Workspace.Explosion:Play() game.Workspace.Chior:Play() script.Parent.Rumble.Disabled = false wait(1) game.Workspace.IntroGui.Value = true wait(0.0001) game.Workspace.IntroGui.Value = false wait(0.0001) game.Workspace.IntroGui.Value = true wait(0.0001) game.Workspace.IntroGui.Value = false wait(3) script.Parent.Rumble.Disabled = true wait(5) game.Lighting.Clean2:clone().Parent = game.Workspace CurrentCamera.CameraSubject = script.Parent.Humanoid CurrentCamera.CameraType = "Custom" Assistant:
- Assistant
-- Improved Luau script with meaningful variable names and added comments for clarity -- Reference to the current camera in the workspace local CurrentCamera = game.Workspace.CurrentCamera -- Initial wait before the sequence starts wait(2.7) -- Switch the camera's focus to the 'Flashback' object in the workspace CurrentCamera.CameraSubject = game.Workspace.Flashback CurrentCamera.CameraType = Enum.CameraType.Attach -- Small pause before the next action wait(1) -- Stop the current background music and play the wind sound effect game.Workspace.Music:Stop() game.Workspace.Winds:Play() -- Enable the script that controls the face of the head in the main scene game.Workspace.MainSC.Hea.Face.ScriptFaceController.Disabled = false -- Set subtitle and text values for the dialogue game.Workspace.SubtitleVisible.Value = true game.Workspace.SubtitleText.Value = "Thank you Mr...(You) for taking the time to visit our facility" -- Wait for the dialogue to display wait(6) -- Disable the face script to indicate silence or stop talking game.Workspace.MainSC.Hea.Face.ScriptFaceController.Disabled = true -- Pause before presenting the next dialogue wait(2) -- Re-enable the face script and set new subtitle content game.Workspace.MainSC.Hea.Face.ScriptFaceController.Disabled = false game.Workspace.SubtitleVisible.Value = true game.Workspace.SubtitleText.Value = "As you can see all of our workers are hardworking..." -- Wait before continuing to the next dialogue wait(6) game.Workspace.MainSC.Hea.Face.ScriptFaceController.Disabled = true wait(2) game.Workspace.MainSC.Hea.Face.ScriptFaceController.Disabled = false game.Workspace.SubtitleVisible.Value = true game.Workspace.SubtitleText.Value = "Would you like to see what we've been working on for a long time?" wait(6) game.Workspace.MainSC.Hea.Face.ScriptFaceController.Disabled = true wait(2) game.Workspace.SubtitleVisible.Value = true game.Workspace.SubtitleText.Value = "You: Sure, let's go..." wait(8) game.Workspace.MainSC.Hea.Face.ScriptFaceController.Disabled = false game.Workspace.SubtitleVisible.Value = true game.Workspace.SubtitleText.Value = "Great! Just follow me." wait(4.5) game.Workspace.MainSC.Hea.Face.ScriptFaceController.Disabled = true wait(2) game.Workspace.SubtitleVisible.Value = true wait(0.001) game.Workspace.CameraOneActive.Value = true game.Workspace.SubtitleText.Value = "*Walks*" wait(20) game.Workspace.SubtitleVisible.Value = false CurrentCamera.CameraType = Enum.CameraType.Track script.Parent.CameraRumble.Disabled = false game.Workspace.Explosion:Play() wait(0.001) game.Workspace.Explosion:Play() wait(3) CurrentCamera.CameraType = Enum.CameraType.Attach script.Parent.CameraRumble.Disabled = true game.Workspace.CameraOneActive.Value = false game.Workspace.SubtitleDuration.Value = 2 game.Workspace.SubtitleVisible.Value = true game.Workspace.SubtitleText.Value = "YOU: WHAT WAS THAT!!!" wait(5) game.Workspace.SubtitleDuration.Value = 5 game.Workspace.SubtitleVisible.Value = true game.Workspace.SubtitleText.Value = "OUR PROJECT HAS ESCAPED, RUN!" game.Workspace.Explosion:Play() wait(0.001) game.Workspace.Winds:Stop() game.Workspace.Explosion:Play() game.Workspace.Chior:Play() script.Parent.CameraRumble.Disabled = false wait(1) game.Workspace.IntroGuiVisible.Value = true wait(0.0001) game.Workspace.IntroGuiVisible.Value = false wait(0.0001) game.Workspace.IntroGuiVisible.Value = true wait(0.0001) game.Workspace.IntroGuiVisible.Value = false wait(3) script.Parent.CameraRumble.Disabled = true wait(5) game.Lighting.CleanUpClone:Clone().Parent = game.Workspace CurrentCamera.CameraSubject = script.Parent.Humanoid CurrentCamera.CameraType = Enum.CameraType.Custom