
KeylessUniversal

--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)



Thank you!
@cykxddd np. enjoy
ai code
@Sander_NL its not but anyways enjoy it i guess
@Sander_NL it isnt ai LMAO
gng why didn't u link the game this was made for
i am not a magician or sum to know what game is it
whats the name of the game?
@kevin123 the name of the game is flick
@IAmSteve thanks!