message (2)
message (2)
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,
},
['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 ,
}
},
['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
}
}
-- 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
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
return closestPlayer
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
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 onScreen then
Circle.Radius = radius
Circle.Position = Circle.Position:Lerp(Vector2.new(screenPos.X,
screenPos.Y), 0.20)
Circle.Visible = vs.Circle.Visible
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)