if shared.fadedhooked then return end shared.fadedhooked = true local ray = loadstring(game:HttpGet("https://sirius.menu/gen2"))() local plr = game:GetService("Players").LocalPlayer local inp = game:GetService("UserInputService") local rs = game:GetService("ReplicatedStorage") local comm = rs:WaitForChild("Comms"):WaitForChild("ActionProvider"):WaitForChild("RE") local finish = comm:WaitForChild("FinishShot") local report = comm:WaitForChild("ShotReport") local act = comm:WaitForChild("RequestAction") local cfg = { release = 0.99, hold = 0.44, sprinton = false } local skip = { Dunk = true, Layup = true, AlleyOop = true, Putback = true } local st = { on = false, hooked = false, mt = nil, old = nil, greens = 0, makes = 0, misses = 0, gs = nil, } local function fix(a) local k = a[1] if type(k) ~= "string" or skip[k] then return a end a[2] = cfg.release local t = a[7] if type(t) == "table" then if type(t.ReleaseTime) == "number" then t.PressTime = t.ReleaseTime - cfg.hold elseif type(t.PressTime) == "number" then t.ReleaseTime = t.PressTime + cfg.hold end t.PressSeen = t.ReleaseSeen or t.PressSeen end st.greens += 1 if st.gs then local n = st.greens task.defer(function() pcall(function() st.gs:Set(n) end) end) end return a end local function arm() if st.hooked then return true end pcall(function() st.mt = getrawmetatable(game) setreadonly(st.mt, false) st.old = rawget(st.mt, "__namecall") rawset(st.mt, "__namecall", newcclosure(function(self, ...) local a = table.pack(...) if st.on and rawequal(self, finish) then pcall(fix, a) end return st.old(self, table.unpack(a, 1, a.n)) end)) setreadonly(st.mt, true) st.hooked = true end) return st.hooked end local function disarm() if not st.hooked then return end pcall(function() setreadonly(st.mt, false) rawset(st.mt, "__namecall", st.old) setreadonly(st.mt, true) end) st.hooked = false end local core = game:GetService("CoreGui"):FindFirstChild("RobloxGui") if core then for _, c in ipairs(core:GetChildren()) do pcall(function() if c:IsA("ScreenGui") and c.DisplayOrder == 99999 then c:Destroy() end end) end end local win = ray:CreateWindow({ name = "faded.dev", subtitle = "auto green", sidebarLayout = true, theme = "default", configuration = { autoSave = true, autoLoad = true, fileName = "fadeddev" }, }) if win.settings.toggleKeybind == Enum.KeyCode.K then win.settings.toggleKeybind = Enum.KeyCode.RightShift end local function greet() local h = tonumber(os.date("%H")) or 0 local p = h < 5 and "night" or h < 12 and "morning" or h < 17 and "afternoon" or h < 22 and "evening" or "night" return "good " .. p .. ", " .. (plr.DisplayName ~= "" and plr.DisplayName or plr.Name) end local dash = win:CreateTab({ name = "dashboard", icon = 109841253338329 }) local hello = dash:CreateText({ text = greet() }) dash:CreateSection({ name = "session stats" }) local row = dash:CreateGroup() local gs = row:CreateStat({ name = "greens", value = 0 }) local ms = row:CreateStat({ name = "makes", value = 0 }) local xs = row:CreateStat({ name = "misses", value = 0 }) local as = row:CreateStat({ name = "accuracy", suffix = "%", value = 0 }) st.gs = gs local note = dash:CreateText({ name = "status", text = "auto green active - k toggles it." }) local function sync() local total = st.makes + st.misses gs:Set(st.greens) ms:Set(st.makes) xs:Set(st.misses) as:Set(total > 0 and math.floor(st.makes / total * 100 + 0.5) or 0) end report.OnClientEvent:Connect(function(...) local a = table.pack(...) if a[7] == true then st.makes += 1 else st.misses += 1 end sync() end) task.spawn(function() while true do task.wait(30) hello:Set(greet()) end end) local tab = win:CreateTab({ name = "shooting", icon = 114567720540659 }) local toggle local function seton(v) if v and not arm() then win:Notify({ title = "auto green", content = "hook failed, check console." }) return end st.on = v note:Set(v and "auto green active - k toggles it." or "auto green off - k turns it back on.") end tab:CreateSection({ name = "shot correction" }) toggle = tab:CreateToggle({ name = "auto green", description = "rewrites every release into the green window.", flag = "AutoGreen", callback = seton, }) inp.InputBegan:Connect(function(i, gp) if not gp and i.KeyCode == Enum.KeyCode.K then toggle:Set(not st.on) end end) tab:CreateSection({ name = "green window" }) local release = tab:CreateSlider({ name = "release value", range = { 0.85, 1.15 }, increment = 0.01, value = cfg.release, flag = "ReleaseValue", callback = function(v) cfg.release = v end, }) local hold = tab:CreateSlider({ name = "hold time", range = { 0.25, 0.7 }, increment = 0.01, value = cfg.hold, flag = "HoldTime", callback = function(v) cfg.hold = v end, }) tab:CreateSection({ name = "maintenance" }) tab:CreateButton({ name = "reset to defaults", callback = function() release:Set(0.99) hold:Set(0.44) win:Notify({ title = "reset", content = "green window back to 0.99 / 0.44." }) end, }) tab:CreateButton({ name = "reset session stats", callback = function() st.greens, st.makes, st.misses = 0, 0, 0 sync() win:Notify({ title = "stats", content = "session counters cleared." }) end, }) tab:CreateButton({ name = "re-arm hook", callback = function() disarm() if st.on and arm() then win:Notify({ title = "auto green", content = "hook re-installed." }) elseif not st.on then win:Notify({ title = "auto green", content = "turn auto green on first." }) end end, }) local stab = win:CreateTab({ name = "stamina", icon = 109718589733073 }) local stoggle stab:CreateSection({ name = "endurance" }) stoggle = stab:CreateToggle({ name = "infinite stamina", description = "keeps sprint requested so the gate never closes.", flag = "InfiniteStamina", callback = function(v) cfg.sprinton = v if not v then local c = plr.Character if c then pcall(function() act:FireServer({ CharacterModel = c, Sprinting = false, ClassName = "SprintAction" }) end) end end end, }) local sstat = stab:CreateStat({ name = "stamina", suffix = "s", value = 0 }) stab:CreateText({ name = "note", text = "g toggles it. sprint requests never stop." }) pcall(function() local snap = workspace:WaitForChild(plr.Name):WaitForChild("__comm__"):WaitForChild("RP"):WaitForChild("StaminaSnapshot") snap.OnClientEvent:Connect(function(t) if type(t) == "table" and type(t.Base) == "number" then local v = math.floor(t.Base * 100 + 0.5) / 100 task.defer(function() pcall(function() sstat:Set(v) end) end) end end) end) inp.InputBegan:Connect(function(i, gp) if not gp and i.KeyCode == Enum.KeyCode.G then stoggle:Set(not cfg.sprinton) end end) task.spawn(function() while true do task.wait(0.2) if cfg.sprinton then local c = plr.Character if c then pcall(function() act:FireServer({ CharacterModel = c, Sprinting = true, ClassName = "SprintAction" }) end) end end end end) toggle:Set(true) win:Notify({ title = "faded.dev loaded", content = "auto green is on. press k to toggle." })