getgenv().
Wept = {
['Triggerbot'] = {
Enabled = true, -- [[ Enable or disable the TriggerBot ]]
Radius = 25, -- [[ The Radius ]]
Mode = 2, -- [[ Mode of operation (1 always on, 2 for toggle, 3 for
hold) ]]
Delay = 0.05, -- [[ Delay between actions (in seconds) ]]
Method = "Tool", -- [[ Method of the Triggerbot (only "Tool" is supported
for now cause i got to lazy) ]]
Prediction = 0.1355, -- [[ The prediction of the Triggerbot ]]
['HitParts'] = { -- [[ Parts whitelisted to be shot ]]
"Head", "UpperTorso", "HumanoidRootPart", "LowerTorso",
"LeftHand", "RightHand", "LeftLowerArm", "RightLowerArm",
"LeftUpperArm", "RightUpperArm", "LeftFoot", "LeftLowerLeg",
"LeftUpperLeg", "RightLowerLeg", "RightFoot", "RightUpperLeg"
},
['Safety'] = { -- [[ Self Explanatory ]]
ForceFieldCheck = true, -- [[ Check if the target has a ForceField ]]
KOCheck = true, -- [[ Check if the target is knocked out ]]
CrewCheck = true, -- [[ Check if the target is in the same
crew ]]
FriendCheck = false, -- [[ Check if the target is a friend ]]
KnifeCheck = true, -- [[ Check if the target is holding a
knife ]]
FoodCheck = true, -- [[ Check if the target is holding food ]]
},
['Toggles'] = {
Keybind = Enum.KeyCode.Q, -- [[ Keybind to use the
TriggerBot ]]
MouseButton = Enum.UserInputType.MouseButton2, -- [[ Mouse button to
use the TriggerBot ]]
}
}
}
-- [[ Kyur is cute ]]
local Players = game:GetService("Players")
local Client = Players.LocalPlayer
local RunService = game:GetService("RunService")
local Camera = workspace.CurrentCamera
local UserInputService = game:GetService("UserInputService")
local Mouse = Client:GetMouse()
local Workspace = game:GetService("Workspace")
local tool = Client.Character and Client.Character:FindFirstChildOfClass("Tool")
local ready = false
local lastActivation = 0
local function Visible(player)
local char = player.Character
if not char or not char:FindFirstChild("HumanoidRootPart") then return false
end
local ray = Ray.new(Camera.CFrame.Position, (char.HumanoidRootPart.Position -
Camera.CFrame.Position).unit * (char.HumanoidRootPart.Position -
Camera.CFrame.Position).magnitude)
return not Workspace:FindPartOnRay(ray, char)
end
local function TriggerPred(target, factor)
local position = target.Position
local velocity = target.Velocity
return position + velocity * factor
end
local function getClosestPlayer()
local minDist = math.huge
local closestPlayer = nil
local mousePos = UserInputService:GetMouseLocation()
for _, player in ipairs(Players:GetPlayers()) do
if player == Client then continue end
if player.Character and player.Character:FindFirstChild("HumanoidRootPart")
then
local hrp = player.Character.HumanoidRootPart
local viewportPos = Camera:WorldToViewportPoint(hrp.Position)
local dist = (Vector2.new(viewportPos.X, viewportPos.Y) -
mousePos).magnitude
if dist < minDist then
minDist = dist
closestPlayer = player
end
end
end
return closestPlayer
end
local function getClosestPartToMouse(player)
local minDist = math.huge
local closestPart = nil
local mousePos = UserInputService:GetMouseLocation()
for _, partName in ipairs(Wept.TriggerBot.HitParts) do
local part = player.Character and player.Character:FindFirstChild(partName)
if part then
local viewportPos = Camera:WorldToViewportPoint(TriggerPred(part,
Wept.TriggerBot.Prediction))
local playerScreenPos = Vector2.new(viewportPos.X, viewportPos.Y)
local dist = (playerScreenPos - mousePos).magnitude
if dist < minDist then
minDist = dist
closestPart = part
end
end
end
return closestPart
end
local function GetKo(Player)
local KoCheck
if Player and Player.Character and
Player.Character:FindFirstChild("BodyEffects") then
if Player.Character.BodyEffects:FindFirstChild("KO") then
KoCheck = Player.Character.BodyEffects:FindFirstChild("KO").Value
elseif Player.Character.BodyEffects:FindFirstChild("K.O") then
KoCheck = Player.Character.BodyEffects:FindFirstChild("K.O").Value
end
end
return KoCheck
end
-- [[ Kyur owns me uwu ]]
local function FindCrew(Player)
if Player:FindFirstChild("DataFolder") and
Player.DataFolder:FindFirstChild("Information") and
Player.DataFolder.Information:FindFirstChild("Crew") and
Client:FindFirstChild("DataFolder") and
Client.DataFolder:FindFirstChild("Information") and
Client.DataFolder.Information:FindFirstChild("Crew")
then
if Client.DataFolder.Information.Crew.Value ~= nil and
Player.DataFolder.Information.Crew.Value ~= nil and
Player.DataFolder.Information.Crew.Value ~= "" and
Client.DataFolder.Information.Crew.Value ~= "" then
return true
end
end
return false
end
local function checkFF(player)
if player:FindFirstChild("ForceField") then
return true
else
return false
end
end
local function isHoldingKnife(player)
local backpack = player.Backpack
for _, item in pairs(backpack:GetChildren()) do
if item:IsA("Tool") and item.Name:match("Knife") then
return true
end
end
return false
end
local function isHoldingFood(player)
local backpack = player.Backpack
local foodItems = {"Pizza", "Burger", "Taco", "Donut", "Ice cream", "Cookie"}
for _, item in pairs(backpack:GetChildren()) do
if item:IsA("Tool") then
for _, food in ipairs(foodItems) do
if item.Name:match(food) then
return true
end
end
end
end
return false
end
-- [[ Food Check for the fatass kyur ]]
local Weapons = {
Pistols = {"[Revolver]", "[Glock]", "[Silencer]"},
Shotguns = {"[Shotgun]", "[Double-Barrel SG]", "[TacticalShotgun]"},
Automatics = {"[SMG]", "[P90]", "[LMG]", "[AR]", "[SilencerAR]", "[AK47]",
"[DrumGun]"},
Foods = {"[Pizza]", "[Burger]", "[Taco]", "[Donut]", "[Ice cream]", "[Cookie]"}
Other = {"[Rifle]", "[Knife]"}
}
local function isToolWhitelisted(toolName)
for _, whitelisted in ipairs(Weapons) do
if toolName == whitelisted then
return true
end
end
return false
end
local function onToolActivated()
if not Wept.TriggerBot.Enabled or not ready then return end
local tool = Client.Character and
Client.Character:FindFirstChildOfClass("Tool")
if tool and not isToolWhitelisted(tool.Name) then
return
end
if tool then
local closestPlayer = getClosestPlayer()
if closestPlayer then
if Wept.TriggerBot.Safety.FriendCheck and
Client:IsFriendsWith(closestPlayer.UserId) then
return
end
if Wept.TriggerBot.Safety.CrewCheck and FindCrew(closestPlayer) then
return
end
if Wept.TriggerBot.Safety.KOCheck and GetKo(closestPlayer) then
return
end
if Wept.TriggerBot.Safety.ForceFieldCheck and checkFF(closestPlayer)
then
return
end
if Wept.TriggerBot.Safety.KnifeCheck and isHoldingKnife(closestPlayer)
then
return
end
if Wept.TriggerBot.Safety.FoodCheck and isHoldingFood(closestPlayer)
then
return
end
local closestPart = getClosestPartToMouse(closestPlayer)
if closestPart then
local aimPos = TriggerPred(closestPart, Wept.TriggerBot.Prediction)
local screenPos, onScreen = Camera:WorldToViewportPoint(aimPos)
if onScreen then
local mousePos = UserInputService:GetMouseLocation()
local dist = (mousePos - Vector2.new(screenPos.X,
screenPos.Y)).magnitude
if dist <= Wept.TriggerBot.Radius then
if tick() - lastActivation >= Wept.TriggerBot.Delay then
if Wept.TriggerBot.Method == "Tool" then -- [[ Flip u
kyur i got lazy so only tool activate]]
tool:Activate()
end
lastActivation = tick()
end
end
end
end
end
end
end
UserInputService.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode ==
Wept.TriggerBot.Toggles.Keybind then
if Wept.TriggerBot.Mode == 2 then
ready = not ready
elseif Wept.TriggerBot.Mode == 3 then
ready = true
end
end
end)
UserInputService.InputBegan:Connect(function(input)
if input.UserInputType == Wept.TriggerBot.Toggles.MouseButton then
if Wept.TriggerBot.Mode == 3 then
ready = true
elseif Wept.TriggerBot.Mode == 2 then
ready = true
end
end
end)
UserInputService.InputEnded:Connect(function(input)
if input.UserInputType == Wept.TriggerBot.Toggles.MouseButton and
Wept.TriggerBot.Mode == 3 then
ready = false
end
end)
RunService.RenderStepped:Connect(function()
if not tool or not Wept.TriggerBot.Enabled then
return
end
if Wept.TriggerBot.Mode == 1 or ready then
onToolActivated()
end
end)
-- [[ Idk shit prob wont work i cant test since no executor ]]