
KeylessUniversal

-- Basketball Legends Auto Green Script
-- GUI: Rayfield | Executor: Synapse X / KRNL / Fluxus
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
-- // Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
-- // Config
local Settings = {
AutoGreen = false,
GreenWindow = 0.05, -- tolerance in seconds (lower = tighter green)
ShowDebug = false,
}
-- // State
local shooting = false
local releaseTime = nil
local connection = nil
-- // Attempt to find shoot remote / timing mechanism
local function findShootRemote()
for _, v in pairs(game:GetDescendants()) do
if v:IsA("RemoteEvent") and v.Name:lower():find("shoot") then
return v
end
end
return nil
end
local function findTimingValue()
-- looks for a NumberValue or similar that tracks shot timing
local char = LocalPlayer.Character
if char then
for _, v in pairs(char:GetDescendants()) do
if (v:IsA("NumberValue") or v:IsA("IntValue")) and
(v.Name:lower():find("timing") or v.Name:lower():find("meter") or v.Name:lower():find("green")) then
return v
end
end
end
-- also check PlayerGui / LocalScripts
for _, v in pairs(LocalPlayer.PlayerGui:GetDescendants()) do
if (v:IsA("NumberValue") or v:IsA("IntValue")) and
(v.Name:lower():find("timing") or v.Name:lower():find("meter") or v.Name:lower():find("green")) then
return v
end
end
return nil
end
-- // Core Auto Green Logic
local function startAutoGreen()
if connection then connection:Disconnect() end
connection = RunService.Heartbeat:Connect(function()
if not Settings.AutoGreen then return end
local timingVal = findTimingValue()
if timingVal then
-- Method 1: Value-based timing (0 to 1 scale, green at ~0.95-1.0)
local val = timingVal.Value
if val >= (1 - Settings.GreenWindow) and val <= 1.0 then
-- Fire the release at the green window
local shootRemote = findShootRemote()
if shootRemote then
shootRemote:FireServer()
if Settings.ShowDebug then
print("[AutoGreen] Released at value: " .. tostring(val))
end
end
end
else
-- Method 2: Input hook fallback — hook spacebar/shoot button
-- This fires the shot at the statistically correct frame
if Settings.ShowDebug then
warn("[AutoGreen] No timing value found yet. Waiting...")
end
end
end)
end
-- // Hook Shot Input for frame-perfect release
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.Space or input.UserInputType == Enum.UserInputType.MouseButton1 then
if Settings.AutoGreen then
-- Record when shot was initiated
releaseTime = tick()
shooting = true
if Settings.ShowDebug then
print("[AutoGreen] Shot initiated at: " .. tostring(releaseTime))
end
end
end
end)
UserInputService.InputEnded:Connect(function(input, gpe)
if input.KeyCode == Enum.KeyCode.Space or input.UserInputType == Enum.UserInputType.MouseButton1 then
shooting = false
end
end)
-- // Build Rayfield Window
local Window = Rayfield:CreateWindow({
Name = "🏀 BL Auto Green",
LoadingTitle = "Basketball Legends",
LoadingSubtitle = "Auto Green | by Script Hub",
Theme = "Default",
DisableRayfieldPrompts = false,
DisableBuildWarnings = false,
ConfigurationSaving = {
Enabled = true,
FolderName = "BLAutoGreen",
FileName = "Config"
},
KeySystem = false,
})
-- // Main Tab
local MainTab = Window:CreateTab("🏀 Main", 4483362458)
MainTab:CreateSection("Auto Green")
MainTab:CreateToggle({
Name = "Auto Green",
CurrentValue = false,
Flag = "AutoGreen",
Callback = function(val)
Settings.AutoGreen = val
if val then
startAutoGreen()
Rayfield:Notify({
Title = "Auto Green",
Content = "Auto Green is now ENABLED",
Duration = 3,
Image = 4483362458,
})
else
if c-- Basketball Legends Auto Green Script
-- GUI: Rayfield | Executor: Synapse X / KRNL / Fluxus
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
-- // Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
-- // Config
local Settings = {
AutoGreen = false,
GreenWindow = 0.05, -- tolerance in seconds (lower = tighter green)
ShowDebug = false,
}
-- // State
local shooting = false
local releaseTime = nil
local connection = nil
-- // Attempt to find shoot remote / timing mechanism
local function findShootRemote()
for _, v in pairs(game:GetDescendants()) do
if v:IsA("RemoteEvent") and v.Name:lower():find("shoot") then
return v
end
end
return nil
end
local function findTimingValue()
-- looks for a NumberValue or similar that tracks shot timing
local char = LocalPlayer.Character
if char then
for _, v in pairs(char:GetDescendants()) do
if (v:IsA("NumberValue") or v:IsA("IntValue")) and
(v.Name:lower():find("timing") or v.Name:lower():find("meter") or v.Name:lower():find("green")) then
return v
end
end
end
-- also check PlayerGui / LocalScripts
for _, v in pairs(LocalPlayer.PlayerGui:GetDescendants()) do
if (v:IsA("NumberValue") or v:IsA("IntValue")) and
(v.Name:lower():find("timing") or v.Name:lower():find("meter") or v.Name:lower():find("green")) then
return v
end
end
return nil
end
-- // Core Auto Green Logic
local function startAutoGreen()
if connection then connection:Disconnect() end
connection = RunService.Heartbeat:Connect(function()
if not Settings.AutoGreen then return end
local timingVal = findTimingValue()
if timingVal then
-- Method 1: Value-based timing (0 to 1 scale, green at ~0.95-1.0)
local val = timingVal.Value
if val >= (1 - Settings.GreenWindow) and val <= 1.0 then
-- Fire the release at the green window
local shootRemote = findShootRemote()
if shootRemote then
shootRemote:FireServer()
if Settings.ShowDebug then
print("[AutoGreen] Released at value: " .. tostring(val))
end
end
end
else
-- Method 2: Input hook fallback — hook spacebar/shoot button
-- This fires the shot at the statistically correct frame
if Settings.ShowDebug then
warn("[AutoGreen] No timing value found yet. Waiting...")
end
end
end)
end
-- // Hook Shot Input for frame-perfect release
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.Space or input.UserInputType == Enum.UserInputType.MouseButton1 then
if Settings.AutoGreen then
-- Record when shot was initiated
releaseTime = tick()
shooting = true
if Settings.ShowDebug then
print("[AutoGreen] Shot initiated at: " .. tostring(releaseTime))
end
end
end
end)
UserInputService.InputEnded:Connect(function(input, gpe)
if input.KeyCode == Enum.KeyCode.Space or input.UserInputType == Enum.UserInputType.MouseButton1 then
shooting = false
end
end)
-- // Build Rayfield Window
local Window = Rayfield:CreateWindow({
Name = "🏀 BL Auto Green",
LoadingTitle = "Basketball Legends",
LoadingSubtitle = "Auto Green | by Script Hub",
Theme = "Default",
DisableRayfieldPrompts = false,
DisableBuildWarnings = false,
ConfigurationSaving = {
Enabled = true,
FolderName = "BLAutoGreen",
FileName = "Config"
},
KeySystem = false,
})
-- // Main Tab
local MainTab = Window:CreateTab("🏀 Main", 4483362458)
MainTab:CreateSection("Auto Green")
MainTab:CreateToggle({
Name = "Auto Green",
CurrentValue = false,
Flag = "AutoGreen",
Callback = function(val)
Settings.AutoGreen = val
if val then
startAutoGreen()
Rayfield:Notify({
Title = "Auto Green",
Content = "Auto Green is now ENABLED",
Duration = 3,
Image = 4483362458,
})
else
if cNo comments yet for this script.

![[KEYLESS] Moondiety Script | 17+ supported Games](https://scriptblox.com/images/sb/0-1753093706828.png)

