local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local player = Players.LocalPlayer local ui = player:WaitForChild("PlayerGui"):WaitForChild("MemoryPestBreathUI") local remote = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("PestBedVisit") local lastToken, lastRevision task.spawn(function() while task.wait(0.05) do if ui:GetAttribute("Active") and ui:GetAttribute("PromptReady") and not ui:GetAttribute("InputExpired") then local token = ui:GetAttribute("Token") local revision = ui:GetAttribute("InputRevision") or 1 if token and (token ~= lastToken or revision ~= lastRevision) then local key = ui:GetAttribute("Key") or ui:GetAttribute("GamepadKey") or "E" local attempt = ui:GetAttribute("Attempt") or 0 remote:FireServer( "BreathHold", token, true, key, revision, workspace:GetServerTimeNow(), attempt ) lastToken = token lastRevision = revision end else lastToken = nil lastRevision = nil end end end)