Realistic Golf ⛳
11.2k Views
2.6k Executions

Auto hole in one

Realistic Golf
JAMEEEEES
JAMEEEEESFirst script
9 months ago
Please login to perform these actions:

Auto hole in one is a Realistic Golf script for Roblox, uploaded to ScriptBlox on Jan 28, 2026.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

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

View Raw
-- // 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


Comments

14
Log in to join the conversation. Login
Adamkj's profile picture
Adamkj2 months ago

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

1
Pukstysdane's profile picture
Pukstysdane6 months ago

send me too please @mislojr2005

1
dacostajonathan79's profile picture
dacostajonathan796 months ago

mislojr2005 Please send it or post

1
lordglads's profile picture
lordglads6 months ago

send

1
lordglads's profile picture
lordglads6 months ago

send me too please @mislojr2005

1
aquabob0000's profile picture
aquabob00006 months ago

mislojr2005 send please

1
connorsvault's profile picture
connorsvault9 months ago

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

1
mislojr2005's profile picture
mislojr20056 months ago

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

1
aquabob0000's profile picture
aquabob00006 months ago

@mislojr2005 send please

1
chasemurphy3's profile picture
chasemurphy35 months ago

@mislojr2005 can you please send me it

1