turret auto aim
Key Required

turret auto aim

Naval Warfareplayvoraplayvora 30.8K views 168 executesUpdated Jun 16, 2024
4.2/ 5(6 votes)
5183% Positive
Lua Script•49 lines (1865 chars)
local a = game.Players
local b = a.LocalPlayer
local c = 800--  bullet velocity between 799-800
local function d()
    local e = b.Character
    local f = e and e:FindFirstChild("HumanoidRootPart") and e.HumanoidRootPart.Position
    if f then
        local g, h = nil, math.huge
        for _, i in ipairs(a:GetPlayers()) do
            if i ~= b and i.Team ~= b.Team and i.Character and i.Character:FindFirstChild("HumanoidRootPart") then
                local j = (i.Character.HumanoidRootPart.Position - f).Magnitude
                if j < h then
                    local k = i.Character:FindFirstChildOfClass("Humanoid")
                    if k and k.Health > 0 then
                        h = j
                        g = i
                    end
                end
            end
        end
        return g
    end
end
local function l(m, n)
    if not m then return m end
    local o = m.Velocity
    return m.Position + (o * n)
end
local p = Drawing.new("Line")
p.Visible = false
p.Color = Color3.new(1, 0, 0)
p.Thickness = 2
game:GetService("RunService").Heartbeat:Connect(function()
    local s = d()
    if s then
        local t = s.Character:FindFirstChild("HumanoidRootPart")
        if t then
            local u = b.Character.HumanoidRootPart.Position
            local v = l(t, (t.Position - u).Magnitude / c)
            p.From = Vector2.new(workspace.CurrentCamera:WorldToViewportPoint(u).X, workspace.CurrentCamera:WorldToViewportPoint(u).Y)
            p.To = Vector2.new(workspace.CurrentCamera:WorldToViewportPoint(v).X, workspace.CurrentCamera:WorldToViewportPoint(v).Y)
            p.Visible = true
            game:GetService("ReplicatedStorage").Event:FireServer("aim", {v})
        end
    else
        p.Visible = false
    end
end)
warn("\119\97\114\110\40\34\109\97\100\101\32\98\121\32\112\108\97\121\118\111\114\97\34\41")

Features & Information

made in 1 hours just go to any turret and press F you can do it in any weapon (not for main weapon in your backpack) has team check --updated again prediction method should kinda better --updated prediction again -- added health check -- added drawing line that shows the script prediction ideas: https://www.youtube.com/watch?v=PBXvzM5jYS0 he said "make it urself" first public script that created turret auto aim maybe? also credit pls?

Community Comments (6)

maxhatt3rmaxhatt3rJun 16, 2024(edited)

script worky, can you make a force change team script?

YuriYuriJun 16, 2024(edited)

can you do for airplanes next

xavierissusxavierissusJun 17, 2024(edited)

this is nice :)

SPEEDSPEEDJun 17, 2024(edited)

Bro ur my favorite scripter 😭

palmpalmDec 24, 2024(edited)

It works well, definitely could be better 8/10

laserhunlaserhunApr 4, 2025

this is a W script

More Scripts for Naval Warfare