0% found this document useful (0 votes)
20 views

message (2)

The document outlines the configuration settings for a game script named JettWin, which includes options for toggling features, safety checks, detection radius, and visual aids. It provides detailed settings for player interactions, including whitelisting players and guns, as well as panic features that can disable or crash the script. The script also contains functions for detecting player states and aiming mechanics based on player positions and actions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

message (2)

The document outlines the configuration settings for a game script named JettWin, which includes options for toggling features, safety checks, detection radius, and visual aids. It provides detailed settings for player interactions, including whitelisting players and guns, as well as panic features that can disable or crash the script. The script also contains functions for detecting player states and aiming mechanics based on player positions and actions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 8

getgenv().

JettWin = {
['Settings'] = {
Version = "TB.01",
Enabled = true,
Mode = 2, -- 1 = Always, 2 = Toggle, 3 = Hold
Method = "MouseClick", -- [[ MouseClick, Tool ]]
},

['Toggles'] = {
Keyboard = true,
Keybind = "q",
MouseButtons = false,
Mouse = "MouseButton2",
},

['Safety'] = {
ForceFieldCheck = true,
KOCheck = true,
CrewCheck = true,
FriendCheck = false,
ReloadCheck = true,
GrabbedCheck = true,
},

['Misc'] = {
AutoReload = false,
NoJumpCoolDown = false,
},

['Board'] = { -- [[ You Can Whitelist players you don't want to shoot ]]


['Whitelisted'] = {
"WhiteMan1",
"WhiteMan2",
"WhiteMan3",
}
},

['DetectionRadius'] = {
['RadiusSettings'] = {
UseRange = true,
UseAir = true,
Ranges = {
Close = 15,
Mid = 30,
Far = math.huge
},
['Radius'] = {
Default = 17,
Airshot = 19,
Close = 25,
Mid = 13,
Far = 10
}
},

['Visualize'] = {
['Circle'] = {
Visible = true,
Transparency = 0.1,
Thickness = 1,
Filled = true,
},

['Line'] = {
Visible = true,
Transparency = 0.1,
Thickness = 1,
Color = Color3.fromRGB(255, 0, 0),
},

['Box'] = {
UseBox = true,
Visible = true,
Transparency = 0.1,
Thickness = 1,
Color = Color3.fromRGB(255, 0, 0),
},
}
},

['Detections'] = { -- [[ Resolver ]]
Enabled = true,
CustomDetections = {
Enabled = false,
Y = 15,
Z = 15,
X = 15,
}
},

['Configuration'] = {
['Default'] = {
Prediction = 0.1355,
Delay = 0.02,
Hitparts = {"Head", "HumanoidRootPart", "Torso", "UpperTorso",
"LowerTorso"}
},

['Airshot'] = {
Enabled = true,
Prediction = 0.1305,
Hitparts = {"UpperTorso", "LowerTorso"},
Delay = 0 ,
}
},

['Advanced'] = { -- [[ Please, Please, Please I Beg If You're A Dumbass Don't


Touch This ]]
['AdvancedHitPart'] = {
Enabled = true,
['Head'] = {Delay = 0.01, Prediction = 0.1555},
['UpperTorso'] = {Delay = 0.01, Prediction = 0.1555},
['LowerTorso'] = {Delay = 0.01, Prediction = 0.1555},
['LeftArm'] = {Delay = 0.01, Prediction = 0.1555},
['RightArm'] = {Delay = 0.01, Prediction = 0.1555},
['LeftLeg'] = {Delay = 0.01, Prediction = 0.1555,}
['RightLeg'] = {Delay = 0.01, Prediction = 0.1555},
},
},

['WhitelistedGuns'] = {
'[Revolver]',
'[Double-Barrel SG]',
'[TacticalShotgun]',
},

['Panic'] = {
Enabled = true,
Panic_Chat = true,
Keybind = 'k',
Chat = 'im lagging', -- The msg that killswitches the cheat
Type = "Crash" -- Crash, Disable
}
}

local Players = game:GetService("Players")


local Client = Players.LocalPlayer
local RunService = game:GetService("RunService")
local Camera = workspace.CurrentCamera
local UserInputService = game:GetService("UserInputService")
local MouseW = Client:GetMouse()
local Workspace = game:GetService("Workspace")
local Circle = Drawing.new("Circle")
local Line = Drawing.new("Line")
local ready
local tool
local closestPlayer

-- table shit
local settings = getgenv().JettWin
local rs = settings.DetectionRadius.RadiusSettings
local vs = settings.DetectionRadius.Visualize
local ms = settings.Settings
local as = settings.Configuration.Airshot
local ds = settings.Configuration.Default
local wgs = settings.WhitelistedGuns
local pn = settings.Panic
local sc = settings.Safety
local method = settings.Settings.Method
local resolver = settings.Detections

local function CheckDistance(plr, maxdistance)


if
plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and
Client.Character and
Client.Character:FindFirstChild("HumanoidRootPart")
then
return (plr.Character.HumanoidRootPart.Position -
Client.Character.HumanoidRootPart.Position).Magnitude >
maxdistance
end
return false
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

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 resolvePosition(player)


if resolver.Enabled then
local char = player.Character
if not char then return end
local pos = char.HumanoidRootPart.Position

if resolver.CustomDetections.Enabled then
pos = pos + Vector3.new(
math.random(-resolver.CustomDetections.X,
resolver.CustomDetections.X),
math.random(-resolver.CustomDetections.Y,
resolver.CustomDetections.Y),
math.random(-resolver.CustomDetections.Z,
resolver.CustomDetections.Z)
)
end

return pos
end
return player.Character.HumanoidRootPart.Position
end
-- Util functions
local function isVisible(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 getClosestPartToMouse(player, hitparts)


local minDist = math.huge
local closestPart = nil
local mousePos = UserInputService:GetMouseLocation()

for _, partName in ipairs(hitparts) do


local part = player.Character and player.Character:FindFirstChild(partName)
if part then
local viewportPos =
Camera:WorldToViewportPoint(resolvePosition(player)) -- Use resolved position
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 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 sc.FriendCheck and Client:IsFriendsWith(player.UserId) then
continue
end
if sc.CrewCheck and FindCrew(player) then
continue
end
if sc.KOCheck and GetKo(player) then
continue
end
if sc.ForceFieldCheck and checkFF(player) then
continue
end
local whtlist = false
for _, v in ipairs(getgenv().JettWin.Board.Whitelisted) do
if player.Name == v then
whtlist = true
end
end
if whtlist then
continue
end
local hrp = player.Character and
player.Character:FindFirstChild("HumanoidRootPart")
if hrp then
local viewportPos =
Camera:WorldToViewportPoint(resolvePosition(player)) -- Use resolved position
local playerScreenPos = Vector2.new(viewportPos.X, viewportPos.Y)
local dist = (playerScreenPos - mousePos).magnitude

if dist < minDist then


minDist = dist
closestPlayer = player
end
end
end

return closestPlayer
end

local function getDistance(player)


return (Client.Character.HumanoidRootPart.Position -
resolvePosition(player)).magnitude
end

MouseW.KeyDown:Connect(function(key)
if key == getgenv().JettWin.Toggles.Keybind and getgenv().JettWin.Settings.Mode
~= 1 then
ready = not ready
elseif key == pn.Keybind and pn.Enabled then
if pn.Type == 'Crash' then
wait(math.random(1.5, 4))
while true do end
elseif pn.Type == 'Disable' then
ms.Enabled = false
end
end
end)

MouseW.KeyUp:Connect(function(key)
if key == getgenv().JettWin.Toggles.Keybind and getgenv().JettWin.Settings.Mode
== 3 then
ready = false
end
end)

Client.Chatted:Connect(function(chat)
if chat == pn.Chat and pn.Panic_Chat then
if pn.Type == 'Crash' then
wait(math.random(1.5, 4))
while true do end
elseif pn.Type == 'Disable' then
ms.Enabled = false
end
end
end)

-- Main loop
local lastActivation = 0

RunService.RenderStepped:Connect(function()

Circle.Transparency = vs.Circle.Transparency
Circle.Thickness = vs.Circle.Thickness
Circle.Filled = vs.Circle.Filled
Circle.Color = Color3.fromRGB(204, 255, 255)

Line.Transparency = vs.Line.Transparency
Line.Thickness = vs.Line.Thickness
Line.Color = vs.Line.Color

tool = Client.Character and Client.Character:FindFirstChildOfClass("Tool")


local isWhitelisted = tool and table.find(wgs, tool.Name)

if not isWhitelisted then


Circle.Visible = false
Line.Visible = false
return
end

closestPlayer = getClosestPlayer()
if closestPlayer and ms.Enabled and (ready or ms.Mode == 1) then
local isAirshot =
math.abs(closestPlayer.Character.HumanoidRootPart.Velocity.Y) > 2
local distance = getDistance(closestPlayer)
local hitparts = isAirshot and as.Hitparts or ds.Hitparts
local hrp = getClosestPartToMouse(closestPlayer, hitparts)
if hrp then
local radius

if isAirshot and rs.UseAir then


radius = rs.Radius.Airshot
elseif distance < rs.Ranges.Close and rs.UseRange then
radius = rs.Radius.Close
elseif distance < rs.Ranges.Mid and rs.UseRange then
radius = rs.Radius.Mid
elseif distance < rs.Ranges.Far and rs.UseRange then
radius = rs.Radius.Far
else
radius = rs.Radius.Default
end

local aimPos = hrp.Position + hrp.Velocity * (isAirshot and


as.Prediction or ds.Prediction)
local screenPos, onScreen = Camera:WorldToViewportPoint(aimPos)

if onScreen then
Circle.Radius = radius
Circle.Position = Circle.Position:Lerp(Vector2.new(screenPos.X,
screenPos.Y), 0.20)
Circle.Visible = vs.Circle.Visible

local mousePos = UserInputService:GetMouseLocation()


Circle.Color = (mousePos - Circle.Position).magnitude <=
Circle.Radius and Color3.fromRGB(255, 0, 0) or Color3.fromRGB(204, 255, 255)

local currentTime = tick()


local delay = isAirshot and as.Delay or ds.Delay
if (mousePos - Circle.Position).magnitude <= Circle.Radius and
(currentTime - lastActivation) >= delay then
if method == "Tool" then
tool:Activate()
elseif method == "MouseClick" then
mouse1click()
end
lastActivation = currentTime
end

if vs.Line.Visible then
Line.From = mousePos
Line.To = Vector2.new(screenPos.X, screenPos.Y)
Line.Visible = true
else
Line.Visible = false
end

else
Circle.Visible = false
Line.Visible = false
end
else
Circle.Visible = false
Line.Visible = false
end
else
Circle.Visible = false
Line.Visible = false
end
end)

You might also like