Auto hole in one
Key Required

Auto hole in one

Realistic Golf ⛳JAMEEEEESJAMEEEEES 11K views 2.5K executesUpdated Jan 28, 2026
1.9/ 5(8 votes)
3538% Positive
Lua Script•44 lines (1987 chars)
-- // Credit : DownInDaNang

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LocalPlayer = game:GetService("Players").LocalPlayer
local GetCupLocation = ReplicatedStorage:WaitForChild("Functions"):WaitForChild("GetCupLocationFunction")
local TargetCupPos: Vector3? = nil

local function UpdateHoleLocation(): ()
    local CurrentHole: number = LocalPlayer:WaitForChild("leaderstats"):WaitForChild("Hole").Value
    local HoleString: string = string.format("%03d", CurrentHole)
    local CourseModel: any = workspace:FindFirstChild("9HoleCourse")
    
    local CupPos: any, CupData: any = GetCupLocation:InvokeServer(HoleString, CourseModel and CourseModel.Name or nil)
    if typeof(CupPos) == "Vector3" then
        TargetCupPos = CupPos
    end
end

LocalPlayer:WaitForChild("leaderstats"):WaitForChild("Hole").Changed:Connect(UpdateHoleLocation)
task.spawn(UpdateHoleLocation)

local OldNewIndex: any
OldNewIndex = hookmetamethod(game, "__newindex", function(Self: any, Index: string, Value: any): any
    if not checkcaller() and (Index == "AssemblyLinearVelocity" or Index == "Velocity") and Self:IsA("BasePart") and Self.Name:find("Ball") then
        if TargetCupPos then
            local DeltaPos: Vector3 = (TargetCupPos - Self.Position)
            local HorizontalDist: number = Vector3.new(DeltaPos.X, 0, DeltaPos.Z).Magnitude
            
            if HorizontalDist > 0.5 then
                local TimeToTarget: number = math.clamp(HorizontalDist / 30, 0.4, 1.2)
                local Gravity: number = 35.037 -- grav
                
                local AimVelocity: Vector3 = Vector3.new(
                    DeltaPos.X / TimeToTarget,
                    (DeltaPos.Y + 0.5 * Gravity * TimeToTarget^2) / TimeToTarget,
                    DeltaPos.Z / TimeToTarget
                )
                
                return OldNewIndex(Self, Index, AimVelocity)
            end
        end
    end
    return OldNewIndex(Self, Index, Value)
end)

Features & Information

Script is not mine btw. Credit : DownInDaNang Auto makes ball go to hole

Community Comments (14)

T7HR4XT7HR4XJan 28, 2026

doesnt work

connorsvaultconnorsvaultJan 28, 2026

why post scripts that don't even know work, tard.

Replying to @connorsvault
JAMEEEEESJAMEEEEESJan 29, 2026

@connorsvault Xeno user spotted

connorsvaultconnorsvaultJan 29, 2026

nope i use pot*ium, your scripts just suck *

connorsvaultconnorsvaultJan 29, 2026

Also who reposts other peoples scripts, learn how to code skid

Replying to @connorsvault
mislojr2005mislojr2005May 1, 2026

@connorsvault I made my own off of this one if you want it

Replying to @mislojr2005
aquabob0000aquabob0000May 2, 2026

@mislojr2005 send please

Replying to @mislojr2005
chasemurphy3chasemurphy3May 24, 2026

@mislojr2005 can you please send me it

aquabob0000aquabob0000May 2, 2026

mislojr2005 send please

lordgladslordgladsMay 2, 2026

send me too please @mislojr2005

lordgladslordgladsMay 2, 2026

send

mislojr2005 Please send it or post

PukstysdanePukstysdaneMay 9, 2026

send me too please @mislojr2005

AdamkjAdamkjSep 7, 2026

gng it doesnt even workk stfu I've tried it in Xeno Solara Krnl, and Delta.