I think this belongs in #help-and-feedback:code-review. you also don’t need to do one line as I’m not sure it’s possible without making a module script or making it super long. You can instead make it more readable by doing this
local function reviveUpdate()
local player = Players:FindFirstChild(folder.Name)
if not player and not player.Character then return end
player.Character:WaitForChild("Humanoid", 5) -- don't know the context
local humanoid = player.Character:FindFirstChild("Humanoid")
local root = player.Character:FindFirstChild("HumanoidRootPart")
if not humanoid or not root then return end
local healthTag = root:FindFirstChild("HealthTag")
if not healthTag or healthTag:FindFirstChild("ReviveFrame") then return end
local reviveFrame = healthTag:FindFirstChild("ReviveFrame")
if folder.Game.ReviveMode.Value then
reviveFrame.Visible = true
else
reviveFrame.Visible = false
end
end
also reminder you can paste your code and format it in devforum