Advertisement
ZV0K

Encrypt Leak

Aug 21st, 2023 (edited)
251
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.50 KB | None | 0 0
  1. getgenv().FovKey = "b" -- fov switch key, if you dont wanna look blatant long range rev
  2.  
  3. getgenv().Parts = {"Head", "HumanoidRootPart, LowerTorso"} -- {"Head", "HumanoidRootPart"}
  4.  
  5. getgenv().Hitchance = 100
  6.  
  7. getgenv().Fov = 60 -- semi legit Rev: 9, 8, 8.5, 7.6, 7.5, 7.3
  8. -- Rev(far): 7, 6.7, 6.4, 5.6, 5.3
  9. -- Shotgun: 12, 11, 10, 10.5, 9.8, 9.4,
  10. ------------------
  11. -- legit star =
  12. -- Rev: 6, 5.7, 5.5, 5.2, 5, 4.8, 4.6, 4.3, 4
  13. -- Rev(far): 4, 3.8, 3.6, 3.4, 3.2, 3, 2.8
  14. -- Shotgun: 7, 6.8, 6.7, 6.5, 6.3, 6.1, 6, 5.7, 5.5, 5.3
  15.  
  16. getgenv().ShowFOV = true
  17.  
  18. getgenv().MacroKey = "q" -- to use the built in lua macro
  19.  
  20. -- soft Aim
  21. getgenv().AimlockKey = "c"
  22. getgenv().SmoothnessAmount = 1
  23. getgenv().PredictionVelocity = 7.12
  24. ----------------------------------
  25. local Aiming = loadstring(game:HttpGet("https://pastebin.com/raw/3A9wdSkL"))()
  26. Aiming.ShowFOV = getgenv().ShowFOV
  27. Aiming.TargetPart = getgenv().Parts
  28. Aiming.HitChance = getgenv().Hitchance
  29. Aiming.TeamCheck(false)
  30. Aiming.ShowFov = false
  31.  
  32.  
  33.  
  34. local Workspace = game:GetService("Workspace")
  35.  
  36. local Players = game:GetService("Players")
  37.  
  38. local RunService = game:GetService("RunService")
  39.  
  40. local UserInputService = game:GetService("UserInputService")
  41.  
  42.  
  43.  
  44. local LocalPlayer = Players.LocalPlayer
  45.  
  46. local Mouse = LocalPlayer:GetMouse()
  47.  
  48. local CurrentCamera = Workspace.CurrentCamera
  49.  
  50.  
  51. local DaHoodSettings = {
  52.  
  53. SilentAim = true,
  54.  
  55. AimLock = true,
  56.  
  57. Prediction = 0.119,
  58.  
  59. AimLockKeybind = Enum.KeyCode.E,
  60.  
  61. Resolver = true,
  62.  
  63. }
  64.  
  65. getgenv().DaHoodSettings = DaHoodSettings
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. function Aiming.Check()
  73.  
  74. if not (Aiming.Enabled == true and Aiming.Selected ~= LocalPlayer and Aiming.SelectedPart ~= nil) then
  75.  
  76. return false
  77.  
  78. end
  79.  
  80. local Character = Aiming.Character(Aiming.Selected)
  81.  
  82. local KOd = Character:WaitForChild("BodyEffects")["K.O"].Value
  83.  
  84. local Grabbed = Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  85.  
  86. if (KOd or Grabbed) then
  87.  
  88. return false
  89.  
  90. end
  91.  
  92. return true
  93.  
  94. end
  95.  
  96.  
  97.  
  98. task.spawn(function()
  99.  
  100. while task.wait() do
  101.  
  102. if DaHoodSettings.Resolver and Aiming.Selected ~= nil and (Aiming.Selected.Character) then
  103.  
  104. local oldVel = game.Players[Aiming.Selected.Name].Character.HumanoidRootPart.Velocity
  105.  
  106. game.Players[Aiming.Selected.Name].Character.HumanoidRootPart.Velocity = Vector3.new(oldVel.X, -0, oldVel.Z)
  107.  
  108. end
  109.  
  110. end
  111.  
  112. end)
  113.  
  114. local Script = {Functions = {}}
  115.  
  116.  
  117.  
  118. Script.Functions.getToolName = function(name)
  119.  
  120. local split = string.split(string.split(name, "[")[2], "]")[1]
  121.  
  122. return split
  123.  
  124. end
  125.  
  126.  
  127.  
  128. Script.Functions.getEquippedWeaponName = function(player)
  129.  
  130. if (player.Character) and player.Character:FindFirstChildWhichIsA("Tool") then
  131.  
  132. local Tool = player.Character:FindFirstChildWhichIsA("Tool")
  133.  
  134. if string.find(Tool.Name, "%[") and string.find(Tool.Name, "%]") and not string.find(Tool.Name, "Wallet") and not string.find(Tool.Name, "Phone") then
  135.  
  136. return Script.Functions.getToolName(Tool.Name)
  137.  
  138. end
  139.  
  140. end
  141.  
  142. return nil
  143.  
  144. end
  145.  
  146.  
  147.  
  148. game:GetService("RunService").RenderStepped:Connect(function()
  149.  
  150. if Script.Functions.getEquippedWeaponName(game.Players.LocalPlayer) ~= nil then
  151.  
  152. local WeaponSettings = GunSettings[Script.Functions.getEquippedWeaponName(game.Players.LocalPlayer)]
  153.  
  154. if WeaponSettings ~= nil then
  155.  
  156. Aiming.FOV = WeaponSettings.FOV
  157.  
  158. else
  159.  
  160. Aiming.FOV = 11.5
  161.  
  162. end
  163.  
  164. end
  165.  
  166. end)
  167.  
  168.  
  169.  
  170. local __index
  171.  
  172. __index = hookmetamethod(game, "__index", function(t, k)
  173.  
  174. if (t:IsA("Mouse") and (k == "Hit" or k == "Target") and Aiming.Check()) then
  175.  
  176. local SelectedPart = Aiming.SelectedPart
  177.  
  178. if (DaHoodSettings.SilentAim and (k == "Hit" or k == "Target")) then
  179.  
  180. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  181.  
  182. return (k == "Hit" and Hit or SelectedPart)
  183.  
  184. end
  185.  
  186. end
  187.  
  188.  
  189.  
  190. return __index(t, k)
  191.  
  192. end)
  193.  
  194.  
  195.  
  196. RunService:BindToRenderStep("AimLock", 0, function()
  197.  
  198. if (DaHoodSettings.AimLock and Aiming.Check() and UserInputService:IsKeyDown(DaHoodSettings.AimLockKeybind)) then
  199.  
  200. local SelectedPart = Aiming.SelectedPart
  201.  
  202. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  203.  
  204. CurrentCamera.CFrame = CFrame.lookAt(CurrentCamera.CFrame.Position, Hit.Position)
  205.  
  206. end
  207. end)
  208.  
  209. BulletColor = false
  210.  
  211. if BulletColor == true then
  212. bullet_tracer_color = Color3.fromRGB(0, 0, 255)
  213. function GetGun()
  214. if game.Players.LocalPlayer.Character then
  215. for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  216. if v:FindFirstChild 'Ammo' then
  217. return v
  218. end
  219. end
  220. end
  221. return nil
  222. end
  223.  
  224. local Services = {
  225. Players = game:GetService("Players"),
  226. UserInputService = game:GetService("UserInputService"),
  227. RunService = game:GetService("RunService"),
  228. }
  229.  
  230. local Local = {
  231. Player = Services.Players.LocalPlayer,
  232. Mouse = Services.Players.LocalPlayer:GetMouse(),
  233. }
  234. local Other = {
  235. Camera = workspace.CurrentCamera,
  236. BeamPart = Instance.new("Part", workspace)
  237. }
  238.  
  239. Other.BeamPart.Name = "BeamPart"
  240. Other.BeamPart.Transparency = 1
  241. local Settings = {
  242. StartColor = MainAccentColor,
  243. EndColor = MainAccentColor,
  244. StartWidth = 4,
  245. EndWidth = 4,
  246. ShowImpactPoint = true,
  247. ImpactTransparency = 0.2,
  248. ImpactColor = Color3.new(1, 1, 1),
  249. Time = 0.435,
  250. }
  251. game:GetService "RunService".Heartbeat:Connect(function()
  252. if game:GetService("Workspace").Ignored:FindFirstChild 'BULLET_RAYS' and BulletColor then
  253. game:GetService("Workspace").Ignored.BULLET_RAYS:Destroy()
  254. end
  255. end)
  256. local funcs = {}
  257. Local.Mouse.TargetFilter = Other.BeamPart
  258. function funcs:Beam(v1, v2)
  259. v2 = Vector3.new(v2.X - 0.1, v2.Y + 0.2, v2.Z)
  260. local colorSequence = ColorSequence.new({
  261. ColorSequenceKeypoint.new(0, bullet_tracer_color),
  262. ColorSequenceKeypoint.new(1, bullet_tracer_color),
  263. })
  264. local Part = Instance.new("Part", Other.BeamPart)
  265. Part.Size = Vector3.new(0, 0, 0)
  266. Part.Massless = true
  267. Part.Transparency = 1
  268. Part.CanCollide = false
  269. Part.Position = v1
  270. Part.Anchored = true
  271. local Attachment = Instance.new("Attachment", Part)
  272. local Part2 = Instance.new("Part", Other.BeamPart)
  273. Part2.Size = Vector3.new(0, 0, 0)
  274. Part2.Transparency = 0
  275. Part2.CanCollide = false
  276. Part2.Position = v2
  277. Part2.Anchored = true
  278. Part2.Material = Enum.Material.Plastic
  279. Part2.Color = Settings.ImpactColor
  280. Part2.Massless = true
  281. local Attachment2 = Instance.new("Attachment", Part2)
  282. local Beam = Instance.new("Beam", Part)
  283. Beam.FaceCamera = true
  284. Beam.Color = colorSequence
  285. Beam.Attachment0 = Attachment
  286. Beam.Attachment1 = Attachment2
  287. Beam.LightEmission = 6
  288. Beam.LightInfluence = 1
  289. Beam.Width0 = 0.05
  290. Beam.Width1 = 0.05
  291. Beam.Texture = "http://www.roblox.com/asset/?id=5210472215"
  292. Beam.TextureSpeed = 0
  293. Beam.TextureLength = 0
  294. delay(Settings.Time, function()
  295. Part:Destroy()
  296. Part2:Destroy()
  297. end)
  298. end
  299.  
  300. spawn(function()
  301. while task.wait(0.5) do
  302. gun = GetGun()
  303. if gun then
  304. LastAmmo = gun.Ammo.Value
  305. gun.Ammo:GetPropertyChangedSignal("Value"):Connect(function()
  306. if BulletColor and gun.Ammo.Value < LastAmmo then
  307. LastAmmo = gun.Ammo.Value
  308. funcs:Beam(gun.Handle.Position, Local.Mouse.hit.p)
  309. end
  310. end)
  311. end
  312. end
  313. end)
  314.  
  315. local a = "[Revolver]"
  316. end
  317.  
  318. Mouse.KeyDown:Connect(
  319. function(Key)
  320. if Key == getgenv().MacroKey then
  321. SpeedGlitch = not SpeedGlitch
  322. if SpeedGlitch == true then
  323. repeat
  324. game:GetService("RunService").Heartbeat:wait()
  325. keypress(0x49)
  326. game:GetService("RunService").Heartbeat:wait()
  327. keypress(0x4F)
  328. game:GetService("RunService").Heartbeat:wait()
  329. keyrelease(0x49)
  330. game:GetService("RunService").Heartbeat:wait()
  331. keyrelease(0x4F)
  332. game:GetService("RunService").Heartbeat:wait()
  333. until SpeedGlitch == false
  334. end
  335. end
  336. end
  337. )
  338.  
  339. local mouseyea = game.Players.LocalPlayer:GetMouse()
  340. mouseyea.KeyDown:Connect(
  341. function(ToggleKey)
  342. if ToggleKey == getgenv().FovKey then
  343. if Aiming.FOV == 30 then
  344. Aiming.FOV = 8
  345. small:Play()
  346. else
  347. Aiming.FOV = 30
  348. big:Play()
  349. end
  350. end
  351. end
  352. )
  353. getgenv().OldAimPart = "Head"
  354. getgenv().AimPart = "Head" -- For R15 Games: {UpperTorso, LowerTorso, HumanoidRootPart, Head} | For R6 Games: {Head, Torso, HumanoidRootPart}
  355. getgenv().AimRadius = 30 -- How far away from someones character you want to lock on at
  356. getgenv().ThirdPerson = true
  357. getgenv().FirstPerson = true
  358. getgenv().TeamCheck = false -- Check if Target is on your Team (True means it wont lock onto your teamates, false is vice versa) (Set it to false if there are no teams)
  359. getgenv().PredictMovement = true -- Predicts if they are moving in fast velocity (like jumping) so the aimbot will go a bit faster to match their speed
  360. getgenv().CheckIfJumped = true
  361. getgenv().Smoothness = true
  362.  
  363. local Players, Uis, RService, SGui = game:GetService"Players", game:GetService"UserInputService", game:GetService"RunService", game:GetService"StarterGui";
  364. local Client, Mouse, Camera, CF, RNew, Vec3, Vec2 = Players.LocalPlayer, Players.LocalPlayer:GetMouse(), workspace.CurrentCamera, CFrame.new, Ray.new, Vector3.new, Vector2.new;
  365. local Aimlock, MousePressed, CanNotify = true, false, false;
  366. local AimlockTarget;
  367. local OldPre;
  368.  
  369.  
  370.  
  371. getgenv().WorldToViewportPoint = function(P)
  372. return Camera:WorldToViewportPoint(P)
  373. end
  374.  
  375. getgenv().WorldToScreenPoint = function(P)
  376. return Camera.WorldToScreenPoint(Camera, P)
  377. end
  378.  
  379. getgenv().GetObscuringObjects = function(T)
  380. if T and T:FindFirstChild(getgenv().AimPart) and Client and Client.Character:FindFirstChild("Head") then
  381. local RayPos = workspace:FindPartOnRay(RNew(
  382. T[getgenv().AimPart].Position, Client.Character.Head.Position)
  383. )
  384. if RayPos then return RayPos:IsDescendantOf(T) end
  385. end
  386. end
  387.  
  388. getgenv().GetNearestTarget = function()
  389. -- Credits to whoever made this, i didnt make it, and my own mouse2plr function kinda sucks
  390. local players = {}
  391. local PLAYER_HOLD = {}
  392. local DISTANCES = {}
  393. for i, v in pairs(Players:GetPlayers()) do
  394. if v ~= Client then
  395. table.insert(players, v)
  396. end
  397. end
  398. for i, v in pairs(players) do
  399. if v.Character ~= nil then
  400. local AIM = v.Character:FindFirstChild("Head")
  401. if getgenv().TeamCheck == true and v.Team ~= Client.Team then
  402. local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
  403. local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
  404. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  405. local DIFF = math.floor((POS - AIM.Position).magnitude)
  406. PLAYER_HOLD[v.Name .. i] = {}
  407. PLAYER_HOLD[v.Name .. i].dist= DISTANCE
  408. PLAYER_HOLD[v.Name .. i].plr = v
  409. PLAYER_HOLD[v.Name .. i].diff = DIFF
  410. table.insert(DISTANCES, DIFF)
  411. elseif getgenv().TeamCheck == false and v.Team == Client.Team then
  412. local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
  413. local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
  414. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  415. local DIFF = math.floor((POS - AIM.Position).magnitude)
  416. PLAYER_HOLD[v.Name .. i] = {}
  417. PLAYER_HOLD[v.Name .. i].dist= DISTANCE
  418. PLAYER_HOLD[v.Name .. i].plr = v
  419. PLAYER_HOLD[v.Name .. i].diff = DIFF
  420. table.insert(DISTANCES, DIFF)
  421. end
  422. end
  423. end
  424.  
  425. if unpack(DISTANCES) == nil then
  426. return nil
  427. end
  428.  
  429. local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  430. if L_DISTANCE > getgenv().AimRadius then
  431. return nil
  432. end
  433.  
  434. for i, v in pairs(PLAYER_HOLD) do
  435. if v.diff == L_DISTANCE then
  436. return v.plr
  437. end
  438. end
  439. return nil
  440. end
  441.  
  442. Mouse.KeyDown:Connect(function(a)
  443. if not (Uis:GetFocusedTextBox()) then
  444. if a == AimlockKey and AimlockTarget == nil then
  445. pcall(function()
  446. if MousePressed ~= true then MousePressed = true end
  447. local Target;Target = GetNearestTarget()
  448. if Target ~= nil then
  449. AimlockTarget = Target
  450. end
  451. end)
  452. elseif a == AimlockKey and AimlockTarget ~= nil then
  453. if AimlockTarget ~= nil then AimlockTarget = nil end
  454. if MousePressed ~= false then
  455. MousePressed = false
  456. end
  457. end
  458. end
  459. end)
  460.  
  461. RService.RenderStepped:Connect(function()
  462. if getgenv().ThirdPerson == true and getgenv().FirstPerson == true then
  463. if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 or (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
  464. CanNotify = true
  465. else
  466. CanNotify = false
  467. end
  468. elseif getgenv().ThirdPerson == true and getgenv().FirstPerson == false then
  469. if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 then
  470. CanNotify = true
  471. else
  472. CanNotify = false
  473. end
  474. elseif getgenv().ThirdPerson == false and getgenv().FirstPerson == true then
  475. if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
  476. CanNotify = true
  477. else
  478. CanNotify = false
  479. end
  480. end
  481. if Aimlock == true and MousePressed == true then
  482. if AimlockTarget and AimlockTarget.Character and AimlockTarget.Character:FindFirstChild(getgenv().AimPart) then
  483. if getgenv().FirstPerson == true then
  484. if CanNotify == true then
  485. if getgenv().PredictMovement == true then
  486. if getgenv().Smoothness == true then
  487. --// The part we're going to lerp/smoothen \\--
  488. local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
  489.  
  490. --// Making it work \\--
  491. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
  492. else
  493. Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
  494. end
  495. elseif getgenv().PredictMovement == false then
  496. if getgenv().Smoothness == true then
  497. --// The part we're going to lerp/smoothen \\--
  498. local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
  499.  
  500. --// Making it work \\--
  501. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
  502. else
  503. Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
  504. end
  505. end
  506. end
  507. end
  508. end
  509. end
  510. if CheckIfJumped == true then
  511. if AimlockTarget.Character.HuDDDDDDDDDDWmanoid.FloorMaterial == Enum.Material.Air then
  512.  
  513. getgenv().AimPart = "UpperTorso"
  514. else
  515. getgenv().AimPart = getgenv().OldAimPart
  516.  
  517. end
  518. end
  519. end)
Advertisement
Comments
  • tibosityy
    281 days
    # text 0.12 KB | 0 0
    1. leaked by me so long ago (im putrid and i was og co owner of encrypt until i realized the dev skidded it all so i leaked this)
Add Comment
Please, Sign In to add comment
Advertisement