local RunService = game:GetService("RunService") local VIM = game:GetService("VirtualInputManager") local LocalPlayer = game:GetService("Players").LocalPlayer local isHolding = false local DOITNOW = LocalPlayer:WaitForChild("PlayerGui").HUD.Battle.DOITNOW local Div = DOITNOW.Meter.Div RunService.Heartbeat:Connect(function() if not DOITNOW.Visible then if isHolding then VIM:SendKeyEvent(false, Enum.KeyCode.Space, false, game) isHolding = false end return end if Div.ImageColor3 == Color3.fromRGB(255, 0, 0) then if isHolding then VIM:SendKeyEvent(false, Enum.KeyCode.Space, false, game) isHolding = false end else if not isHolding then VIM:SendKeyEvent(true, Enum.KeyCode.Space, false, game) isHolding = true end end end)