triger bot open source
Key RequiredUniversal

triger bot open source

Universal Scriptrayanito86xrayanito86x 1.4K views 194 executesUpdated Oct 30, 2025
1.7/ 5(3 votes)
1233% Positive
Lua Script•97 lines (2959 chars)
--open source made by Rayan if you want to skid this atleast give me credits
--to toggle this press P or edit the script to choose a key
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local Mouse = LocalPlayer:GetMouse()

local enabled = true
local shootDelay = 0.0007
local lastShot = 0

local function findGun()
    local character = LocalPlayer.Character
    if not character then return nil end
    
    for _, obj in pairs(character:GetDescendants()) do
        if obj:IsA("Tool") or obj.Name:lower():find("gun") or obj.Name:lower():find("rifle") then
            return obj
        end
    end
    
    local backpack = LocalPlayer:FindFirstChild("Backpack")
    if backpack then
        for _, tool in pairs(backpack:GetChildren()) do
            if tool:IsA("Tool") then
                return tool
            end
        end
    end
    
    return nil
end

local function isPlayerOnCursor()
    local mousePos = UserInputService:GetMouseLocation()
    
    for _, player in pairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Character then
            local character = player.Character
            local humanoid = character:FindFirstChild("Humanoid")
            local rootPart = character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("Torso")
            
            if humanoid and rootPart and humanoid.Health > 0 then
                local screenPos, onScreen = Camera:WorldToViewportPoint(rootPart.Position)
                
                if onScreen then
                    local distance = (Vector2.new(screenPos.X, screenPos.Y) - mousePos).Magnitude
                    
                    if distance < 80 then
                        return true, player
                    end
                end
            end
        end
    end
    
    return false, nil
end

local function autoShoot()
    mouse1press = mouse1press or function()
        local vim = game:GetService("VirtualInputManager")
        vim:SendMouseButtonEvent(0, 0, 0, true, game, 1)
        wait(0.01)
        vim:SendMouseButtonEvent(0, 0, 0, false, game, 1)
    end
    
    mouse1press()
end

RunService.Heartbeat:Connect(function()
    if not enabled then return end
    
    local currentTime = tick()
    if currentTime - lastShot < shootDelay then return end
    
    local targeting, targetPlayer = isPlayerOnCursor()
    
    if targeting then
        autoShoot()
        lastShot = currentTime
        
        local tool = findGun()
        if tool and tool:IsA("Tool") then
            tool:Activate()
        end
    end
end)

UserInputService.InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.P then
        enabled = not enabled
        print("Triggerbot:", enabled and "ON" or "OFF")
    end
end)

Features & Information

i made it open source
#morocco

Community Comments (10)

cykxdddcykxdddOct 30, 2025

Thank you!

Replying to @cykxddd
rayanito86xrayanito86xOct 30, 2025

@cykxddd np. enjoy

Sander_NLSander_NLOct 30, 2025

ai code

Replying to @Sander_NL
rayanito86xrayanito86xOct 30, 2025

@Sander_NL its not but anyways enjoy it i guess

SkibidiAura69SkibidiAura69Oct 30, 2025

@Sander_NL it isnt ai LMAO

IAmSteveIAmSteveOct 30, 2025

gng why didn't u link the game this was made for

IAmSteveIAmSteveOct 30, 2025

i am not a magician or sum to know what game is it

kevin123kevin123Oct 30, 2025

whats the name of the game?

Replying to @kevin123
IAmSteveIAmSteveOct 31, 2025

@kevin123 the name of the game is flick

Replying to @IAmSteve
kevin123kevin123Nov 1, 2025

@IAmSteve thanks!

More Scripts for Universal Scripts