Advertisement
muhz

Better Triggerbot Dahood

Apr 20th, 2024
1,077
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.95 KB | None | 0 1
  1. getgenv().Arceus = {
  2. Silent = {
  3. ["Enabled"] = (true), -- // Use The Silent Aim Or Not
  4.  
  5. ["Part"] = ("Head"), -- // What Part It Targerts
  6. ["UseAirPart"] = (false), -- // When Target Isnt On The Ground It Uses This Part
  7. ["AirPart"] = ("LowerTorso"), -- // The Parts It Targets On When Player Isnt On The Ground
  8. ["ClosestPart"] = (true), -- // Automatically Gets The Closest Part Of The Target And Uses That
  9. ["ClosestPoint"] = (false), -- // Automatically Gets The Closest Point Of The Target Part And Uses That
  10.  
  11. ["HitChance"] = (600), -- // The Chance You Will Hit The Target
  12.  
  13. ["Humanize"] = (true), -- // Makes Soo The Silent Doesnt Hit The Same Position
  14. ["HumanizeValue"] = (2), -- // Makes How Much Power It Changes
  15.  
  16. ["TriggerBot"] = (true), -- // Shoots AutoMatically
  17. ["UseTriggerBotKeybind"] = (true), -- // Enable / Disable TriggerBot Keybind
  18. ["TriggerBotKey"] = (c), -- // KeyBind To Enable / Disable TriggerBot You Can Find More At https://create.roblox.com/docs/reference/engine/enums/UserInputType
  19.  
  20. ["PredictMovement"] = (true), -- // Predicts Targets Movement
  21. ["AutoPrediction"] = (false), -- // Automatically Gets An Good Prediction
  22. ["PredictionVelocity"] = (0.149), -- // How Much It Predicts
  23.  
  24. ["AntiGroundShots"] = (true), -- // Makes So You Dont Shoot The Ground
  25. ["AntiGroundValue"] = (0.5), -- // How Much Velocity It Rmoves From Target
  26. ["WhenAntiGroundActivate"] = (-20), -- // When Its Gonna Activate
  27.  
  28. ["AntiAimViewer"] = (false), -- // Bypasses The Mouse Position For The Server
  29.  
  30. ["WallCheck"] = (true), -- // Checks If Theres A Wall
  31.  
  32. ["CheckIf_KO"] = (true), -- // Checks If Target Is Grabbed Or Knocked
  33. ["CheckIf_TargetDeath"] = (true), -- // Checks If Target Is Dead
  34.  
  35. ["UseKeybind"] = (true), -- // Use The KeyBind To Enable / Disable The Silent Aim
  36. ["Keybind"] = (";") -- // The Keybind That Enables / Disables The Silent Aim
  37. },
  38. GunFov = {
  39. ["Enabled"] = (false), -- // Gun Fov / Fov Is Automatically Changed To Specific Gun Equipped
  40.  
  41. ["Double-Barrel SG"] = {["Fov"] = 50}, -- // Db
  42. ["Revolver"] = {["Fov"] = 50}, -- // Rev
  43. ["SMG"] = {["Fov"] = 30}, -- // Smg
  44. ["Shotgun"] = {["Fov"] = 50}, -- // Shotgun
  45. ["Rifle"] = {["Fov"] = 45}, -- // Rifle
  46. ["TacticalShotgun"] = {["Fov"] = 50}, -- // Tactical
  47. ["Silencer"] = {["Fov"] = 35}, -- // Smg
  48. ["AK47"] = {["Fov"] = 20}, -- // Ak47
  49. ["AR"] = {["Fov"] = 35} -- // Rifle
  50. -- // You Can Add Custom Weapons If You Want To :p
  51. },
  52. RangeFov = {
  53. ["Enabled"] = (true), -- // Gun Fov / Fov Is Automatically Changed To Specific Distance Between Target / This Will OverWrite GunFov
  54.  
  55. ["Far_Activation"] = (math.huge), -- // Just Keep It At Math.Huge
  56. ["Medium_Activation"] = (50), -- // Its Using Studs
  57. ["Close_Activation"] = (25), -- // Its Uisng Studs
  58.  
  59. ["Double-Barrel SG"] = {["Far"] = 15, ["Med"] = 30, ["Close"] = 70}, -- // Db
  60. ["Revolver"] = {["Far"] = 15, ["Med"] = 30, ["Close"] = 70}, -- // Rev
  61. ["SMG"] = {["Far"] = 15, ["Med"] = 30, ["Close"] = 70}, -- // Smg
  62. ["Shotgun"] = {["Far"] = 30, ["Med"] = 30, ["Close"] = 70}, -- // Shotgun
  63. ["Rifle"] = {["Far"] = 15, ["Med"] = 30, ["Close"] = 70}, -- // Rifle
  64. ["TacticalShotgun"] = {["Far"] = 30, ["Med"] = 50, ["Close"] = 70},
  65. ["Silencer"] = {["Far"] = 15, ["Med"] = 30, ["Close"] = 70},
  66. ["AK47"] = {["Far"] = 15, ["Med"] = 30, ["Close"] = 70},
  67. ["AR"] = {["Far"] = 15, ["Med"] = 30, ["Close"] = 70},
  68. -- // You Can Add Custom Weapons If You Want To :p
  69. },
  70. SilentFov = {
  71. ["Visible"] = (false), -- // If The Circle Is Showing Or Not
  72. ["Filled"] = (false), -- // If The Circle Is Filled
  73. ["Transparency"] = (1), -- // The Circle Transparency
  74. ["Color"] = (Color3.fromRGB(87, 237, 255)), -- // Circle Transparency
  75. ["Radius"] = (50) -- // How Big The Circle Is
  76. },
  77.  
  78. AimAssist = {
  79. ["Enabled"] = (false), -- // Use The Aim Assist Or Not
  80.  
  81. ["Key"] = ("c"), -- // The Key To Lock Onto A Player
  82. ["HoldMode"] = (false), -- // Enables While Only Holding The Key
  83.  
  84. ["Part"] = ("UpperTorso"), -- // The Part That Aim Assist Locks On
  85. ["ClosestPart"] = (true), -- // Automatically Gets The Closest Part Of The Target And Uses That
  86.  
  87. ["DisableTargetDeath"] = (true), -- // Disables When Target Dies
  88. ["DisableLocalDeath"] = (true), -- // Disables When You Died
  89. ["DisableOn_KO"] = (true), -- // Disables If Target Is KO Or Grabbed
  90.  
  91. ["UseCircleRadius"] = (true), -- // Only Locks On To People Inside The Circle
  92. ["DisableOutSideCircle"] = (false), -- // If Target Is OutSide The Circle It Disables The Aim Assist
  93.  
  94. ["UseShake"] = (true), -- // Shakes The Camera
  95. ["ShakeValue"] = (55), -- // How Much It Shakes
  96.  
  97. ["PredictMovement"] = (true), -- // Predicts Targets MoveMent
  98. ["PredictionVelocity"] = (0.22), -- // How Much It Predicts
  99.  
  100. ["WallCheck"] = (true), -- // Checks If Theres A Wall
  101.  
  102. ["Smoothness_X"] = (0.053251), -- // How Smooth The Aim Assist Is On X
  103. ["Smoothness_Y"] = (0.053251) -- // How Smooth The Aim Assist Is On Y
  104. },
  105. AimAssistFov = {
  106. ["Visible"] = (false), -- // If The Circle Is Showing Or Not
  107. ["Filled"] = (false), -- // If The Circle Is Filled
  108. ["Transparency"] = (100), -- // Circle Transparency
  109. ["Color"] = (Color3.fromRGB(255, 87, 87)), -- // Circle Transparency
  110. ["Radius"] = (70) -- // How Big The Circle Is
  111. },
  112. Both = {
  113. ["DetectDesync"] = (true), -- // Detects Velocity Changer + Actually Hits
  114. ["DesyncDetection"] = (86), -- // When It Detects
  115.  
  116. ["UsDetectDesyncKeybind"] = (false), -- // Enable / Disable Desync Detection Keybind
  117. ["DetectDesyncKey"] = ("t"), -- // KeyBind To Enable / Disable Desync Detection
  118.  
  119. ["DetectUnderGround"] = (true), -- // Detects Common UnderGround Resolver
  120. ["UnderGroundDetection"] = (-30), -- // When It Detects
  121.  
  122. ["UseUnderGroundKeybind"] = (false), -- // Enable / Disable UnderGround Resolver Keybind
  123. ["UnderGroundKey"] = ("X"), -- // KeyBind To Enable / Disable UnderGround Resolver
  124.  
  125. ["VisibleCheck"] = (true), -- // Checks If Target Is Visible
  126. ["CrewCheck"] = (false), -- // Checks If Target Is In Your Crew
  127. ["FriendCheck"] = (false), -- // Checks If Target Is Your Friend
  128. ["TeamCheck"] = (false), -- // Checks If Player Is In the Same Team
  129.  
  130. ["UseLay"] = (true), -- // Enable / Disable Lay Keybind
  131. ["LayKeybind"] = ("v"), -- // KeyBind To Lay
  132.  
  133. ["SendNotification"] = (true) -- // Sends Notification When you Enabled / Disabled Stuff
  134. },
  135. Commands = {
  136. ["Enabled"] = (true), -- // Enable / Disable Chat Command
  137.  
  138. -- // Silent Table
  139. ["Silent_Enabled"] = ("!senabled"), -- // The Command To Enable / Disable Silent (With false/true)
  140. ["Silent_Prediction"] = ("/e fov"), -- // The Command To Change Silent Prediction (With Numbers)
  141. ["Silent_Fov_Size"] = ("!sfov"), -- // The Command To Change Silent Fov (With Numbers)
  142. ["Silent_Fov_Show"] = ("!sshow"), -- // The Command To Change Silent (With false/true)
  143. ["Silent_HitChance"] = ("!schance"), -- // The Command To Change Silent HitChance (With Numbers)
  144.  
  145. -- // AimAssist Table
  146. ["AimAssist_Enabled"] = ("!aenabled"), -- // The Command To Enable / Disable AimAssist (With false/true)
  147. ["AimAssist_Prediction"] = ("!apred"), -- // The Command To Change AimAssist Prediction (With Numbers)
  148. ["AimAssist_Fov_Size"] = ("!afov"), -- // The Command To Change AimAssist Fov (With Numbers)
  149. ["AimAssist_Fov_Show"] = ("!ashow"), -- // The Command To Change AimAssist (With false/true)
  150. ["AimAssist_SmoothX"] = ("!smoothx"), -- // The Command To Change AimAssist SmoothNess X Value (With Numbers)
  151. ["AimAssist_SmoothY"] = ("!smoothy"), -- // The Command To Change AimAssist SmoothNess Y Value (With Numbers)
  152. ["AimAssist_Shake"] = ("!ashake"), -- // The Command To Change AimAssist Shake Value (With Numbers)
  153.  
  154. ["CrashMode"] = (". "), -- // The Command To Crash Roblox
  155. },
  156.  
  157. Esp = {
  158. ["Enabled"] = (false), -- // Enabel / Disable Esp
  159. ["UseEspKeybind"] = (true), -- // Enable / Disable Esp Keybind
  160. ["EspKey"] = ("p"), -- // KeyBind To Enable / Disable Esp
  161. ["HoldMode"] = (true), -- // Enables While Only Holding The Key
  162.  
  163. ["Name"] = {["Enabled"] = true, ["OutLine"] = true, ["Color"] = Color3.fromRGB(255, 255, 255)}, -- // Shows Targets Name
  164. ["Box"] = {["Enabled"] = true, ["OutLine"] = true, ["Color"] = Color3.fromRGB(255, 255, 255)}, -- // Shows Box On Target
  165. ["HealthBar"] = {["Enabled"] = true, ["OutLine"] = true, ["Color"] = Color3.fromRGB(0, 255, 0)}, -- // Shows An Health Bar On Target
  166. ["HealthText"] = {["Enabled"] = true, ["OutLine"] = true, ["Color"] = Color3.fromRGB(0, 255, 0)}, -- // Shows An Text How Much Hp Target Have
  167. ["Distance"] = {["Enabled"] = true, ["OutLine"] = true, ["Color"] = Color3.fromRGB(255, 255, 255)} -- // Shows Targets Distance Between You
  168. }
  169. }
  170.  
  171. -- // If You See This Means That You Got This Or It Got Leaked. Look I Do Not Care About You Skidding Of It But If Your Just Gonna try To Make The Exact Same Replica Imma Beat Yo Mamma. AnyWays Gl
  172.  
  173. -- // Checks If Obfuscated Else Makes Luraph Macro Useless Function
  174. if not LPH_OBFUSCATED then
  175. LPH_JIT_MAX = function(...)
  176. return (...)
  177. end
  178. LPH_NO_VIRTUALIZE = function(...)
  179. return (...)
  180. end
  181. end
  182.  
  183. LPH_JIT_MAX(function()
  184. -- // Variables (Too Lazy To Make It To One Local)
  185. local Arceus = getgenv().Arceus
  186. local OldSilentAimPart = Arceus.Silent.Part
  187. local ClosestPointCF, SilentTarget, AimTarget, DetectedDesync, DetectedDesyncV2, DetectedUnderGround, DetectedUnderGroundV2, DetectedFreeFall, AntiAimViewer =
  188. CFrame.new(),
  189. nil,
  190. nil,
  191. false,
  192. false,
  193. false,
  194. false,
  195. false,
  196. true
  197. local Script = {Functions = {}, Friends = {}, Drawing = {}, EspPlayers = {}}
  198.  
  199. local Players, Client, Mouse, RS, Camera, GuiS, Uis, Ran =
  200. game:GetService("Players"),
  201. game:GetService("Players").LocalPlayer,
  202. game:GetService("Players").LocalPlayer:GetMouse(),
  203. game:GetService("RunService"),
  204. game:GetService("Workspace").CurrentCamera,
  205. game:GetService("GuiService"),
  206. game:GetService("UserInputService"),
  207. math.random
  208.  
  209. -- // Drawing For AimAssist And SilentAim
  210. Script.Drawing.SilentCircle = Drawing.new("Circle")
  211. Script.Drawing.SilentCircle.Color = Color3.new(1,1,1)
  212. Script.Drawing.SilentCircle.Thickness = 1
  213.  
  214. Script.Drawing.AimAssistCircle = Drawing.new("Circle")
  215. Script.Drawing.AimAssistCircle.Color = Color3.new(1,1,1)
  216. Script.Drawing.AimAssistCircle.Thickness = 1
  217.  
  218. -- // Chat Check
  219. Client.Chatted:Connect(function(Msg)
  220. if Msg == Arceus.Commands.CrashMode then
  221. while true do end
  222. end
  223. local Splitted = string.split(Msg, " ")
  224. if Splitted[1] and Splitted[2] and Arceus.Commands.Enabled then
  225. if Splitted[1] == Arceus.Commands.Silent_Prediction then
  226. Arceus.Silent.PredictionVelocity = Splitted[2]
  227. elseif Splitted[1] == Arceus.Commands.Silent_Fov_Size then
  228. Arceus.SilentFov.Radius = Splitted[2]
  229. elseif Splitted[1] == Arceus.Commands.Silent_Fov_Show then
  230. if Splitted[2] == "true" then
  231. Arceus.SilentFov.Visible = true
  232. else
  233. Arceus.SilentFov.Visible = false
  234. end
  235. elseif Splitted[1] == Arceus.Commands.Silent_Enabled then
  236. if Splitted[2] == "true" then
  237. Arceus.Silent.Enabled = true
  238. else
  239. Arceus.Silent.Enabled = false
  240. end
  241. elseif Splitted[1] == Arceus.Commands.Silent_HitChance then
  242. Arceus.Silent.HitChance = Splitted[2]
  243. elseif Splitted[1] == Arceus.Commands.AimAssist_Prediction then
  244. Arceus.AimAssist.PredictionVelocity = Splitted[2]
  245. elseif Splitted[1] == Arceus.Commands.AimAssist_Fov_Size then
  246. Arceus.AimAssistFov.Radius = Splitted[2]
  247. elseif Splitted[1] == Arceus.Commands.AimAssist_Fov_Show then
  248. if Splitted[2] == "true" then
  249. Arceus.AimAssistFov.Visible = true
  250. else
  251. Arceus.AimAssistFov.Visible = false
  252. end
  253. elseif Splitted[1] == Arceus.Commands.AimAssist_Enabled then
  254. if Splitted[2] == "true" then
  255. Arceus.AimAssist.Enabled = true
  256. else
  257. Arceus.AimAssist.Enabled = false
  258. end
  259. elseif Splitted[1] == Arceus.Commands.AimAssist_SmoothX then
  260. Arceus.AimAssist.Smoothness_X = Splitted[2]
  261. elseif Splitted[1] == Arceus.Commands.AimAssist_SmoothY then
  262. Arceus.AimAssist.Smoothness_Y = Splitted[2]
  263. elseif Splitted[1] == Arceus.Commands.AimAssist_Shake then
  264. Arceus.AimAssist.ShakeValue = Splitted[2]
  265. end
  266. end
  267. end)
  268.  
  269. -- // KeyDown Check
  270. Mouse.KeyDown:Connect(function(Key)
  271. local Keybind = Arceus.AimAssist.Key:lower()
  272. if Key == Keybind then
  273. if Arceus.AimAssist.Enabled then
  274. IsTargetting = not IsTargetting
  275. if IsTargetting then
  276. Script.Functions.GetClosestPlayer2()
  277. else
  278. if AimTarget ~= nil then
  279. AimTarget = nil
  280. IsTargetting = false
  281. end
  282. end
  283. end
  284. end
  285. local Keybind2 = Arceus.Silent.Keybind:lower()
  286. if Key == Keybind2 and Arceus.Silent.UseKeybind then
  287. Arceus.Silent.Enabled = not Arceus.Silent.Enabled
  288. if Arceus.Both.SendNotification then
  289. game.StarterGui:SetCore("SendNotification",{
  290. Title = "Arceus.cc",
  291. Text = "Silent Aim: " .. tostring(Arceus.Silent.Enabled),
  292. Icon = "rbxassetid://12225612888",
  293. Duration = 1
  294. })
  295. end
  296. end
  297. local Keybind3 = Arceus.Both.UnderGroundKey:lower()
  298. if Key == Keybind3 and Arceus.Both.UseUnderGroundKeybind then
  299. Arceus.Both.DetectUnderGround = not Arceus.Both.DetectUnderGround
  300. if Arceus.Both.SendNotification then
  301. game.StarterGui:SetCore("SendNotification",{
  302. Title = "Arceus.cc",
  303. Text = "UnderGround Resolver: " .. tostring(Arceus.Both.DetectUnderGround),
  304. Icon = "rbxassetid://12225612888",
  305. Duration = 1
  306. })
  307. end
  308. end
  309. local Keybind4 = Arceus.Both.DetectDesyncKey:lower()
  310. if Key == Keybind4 and Arceus.Both.UsDetectDesyncKeybind then
  311. Arceus.Both.DetectDesync = not Arceus.Both.DetectDesync
  312. if Arceus.Both.SendNotification then
  313. game.StarterGui:SetCore("SendNotification",{
  314. Title = "Arceus.cc",
  315. Text = "Desync Resolver: " .. tostring(Arceus.Both.DetectDesync),
  316. Icon = "rbxassetid://12225612888",
  317. Duration = 1
  318. })
  319. end
  320. end
  321. local Keybind5 = Arceus.Both.LayKeybind:lower()
  322. if Key == Keybind5 and Arceus.Both.UseLay then
  323. local Args = {
  324. [1] = "AnimationPack",
  325. [2] = "Lay"
  326. }
  327. game:GetService("ReplicatedStorage"):FindFirstChild("MainEvent"):FireServer(unpack(Args))
  328. end
  329. local Keybind6 = Arceus.Esp.EspKey:lower()
  330. if Key == Keybind6 and Arceus.Esp.UseEspKeybind then
  331. if Arceus.Esp.HoldMode then
  332. Arceus.Esp.Enabled = true
  333. else
  334. Arceus.Esp.Enabled = not Arceus.Esp.Enabled
  335. end
  336. end
  337. end)
  338.  
  339. -- // KeyUp Check
  340. Mouse.KeyUp:Connect(function(Key)
  341. local Keybind = Arceus.Esp.EspKey:lower()
  342. if Key == Keybind and Arceus.Esp.UseEspKeybind and Arceus.Esp.HoldMode then
  343. Arceus.Esp.Enabled = false
  344. end
  345. local Keybind2 = Arceus.AimAssist.Key:lower()
  346. if Key == Keybind2 and Arceus.AimAssist.Enabled and Arceus.AimAssist.HoldMode then
  347. IsTargetting = false
  348. AimTarget = nil
  349. end
  350. end)
  351.  
  352. -- // Disabled If AntiAimViewer Is On
  353. if Arceus.Silent.AntiAimViewer then
  354. AntiAimViewer = false
  355. else
  356. AntiAimViewer = true
  357. end
  358.  
  359. -- // Blocks Mouse Triggering
  360. game:GetService("ContextActionService"):BindActionAtPriority(
  361. "LeftMouseBlock",
  362. function()
  363. if AntiAimViewer == false and Arceus.Silent.AntiAimViewer and Client.Character and Client.Character:FindFirstChildWhichIsA("Tool") then
  364. return Enum.ContextActionResult.Sink
  365. else
  366. return Enum.ContextActionResult.Pass
  367. end
  368. end,
  369. true,
  370. Enum.ContextActionPriority.Low.Value,
  371. Enum.UserInputType.MouseButton1
  372. )
  373.  
  374. -- // Delaying The Mouse Trigger
  375. Uis.InputBegan:connect(function(input)
  376. if input.UserInputType == Enum.UserInputType[Arceus.Silent.TriggerBotKey] and Arceus.Silent.UseTriggerBotKeybind then
  377. Arceus.Silent.TriggerBot = true
  378. end
  379. if input.UserInputType == Enum.UserInputType.MouseButton1 and Arceus.Silent.AntiAimViewer and Client.Character and Client.Character:FindFirstChildWhichIsA("Tool") then
  380. if AntiAimViewer == false then
  381. AntiAimViewer = true
  382. mouse1click()
  383. RS.RenderStepped:Wait()
  384. RS.RenderStepped:Wait()
  385. mouse1press()
  386. RS.RenderStepped:Wait()
  387. RS.RenderStepped:Wait()
  388. AntiAimViewer = false
  389. end
  390. end
  391. end)
  392.  
  393. -- // Helps With Automatics
  394. Uis.InputEnded:connect(function(input)
  395. if input.UserInputType == Enum.UserInputType[Arceus.Silent.TriggerBotKey] and Arceus.Silent.UseTriggerBotKeybind then
  396. Arceus.Silent.TriggerBot = true
  397. end
  398. if input.UserInputType == Enum.UserInputType.MouseButton1 and Arceus.Silent.AntiAimViewer and Client.Character and Client.Character:FindFirstChildWhichIsA("Tool") then
  399. if AntiAimViewer == false then
  400. AntiAimViewer = true
  401. mouse1click()
  402. RS.RenderStepped:Wait()
  403. RS.RenderStepped:Wait()
  404. mouse1click()
  405. RS.RenderStepped:Wait()
  406. RS.RenderStepped:Wait()
  407. AntiAimViewer = true
  408. end
  409. end
  410. end)
  411.  
  412. -- // Checks If The Player Is Alive
  413. Script.Functions.Alive = LPH_NO_VIRTUALIZE(function(Plr)
  414. if Plr and Plr.Character and Plr.Character:FindFirstChild("HumanoidRootPart") ~= nil and Plr.Character:FindFirstChild("Humanoid") ~= nil and Plr.Character:FindFirstChild("Head") ~= nil then
  415. return true
  416. end
  417. return false
  418. end)
  419.  
  420. -- // Checks If Player Is On Your Screen
  421. Script.Functions.OnScreen = LPH_NO_VIRTUALIZE(function(Object)
  422. local _, screen = Camera:WorldToScreenPoint(Object.Position)
  423. return screen
  424. end)
  425.  
  426. -- // Gets Magnitude From Part Position And Mouse
  427. Script.Functions.GetMagnitudeFromMouse = LPH_NO_VIRTUALIZE(function(Part)
  428. local PartPos, OnScreen = Camera:WorldToScreenPoint(Part.Position)
  429. if OnScreen then
  430. local Magnitude = (Vector2.new(PartPos.X, PartPos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  431. return Magnitude
  432. end
  433. return math.huge
  434. end)
  435.  
  436. -- // Makes Random Number With Vector3
  437. Script.Functions.RandomVec = LPH_NO_VIRTUALIZE(function(Number, Multi)
  438. return (Vector3.new(Ran(-Number, Number), Ran(-Number, Number), Ran(-Number, Number)) * Multi or 1)
  439. end)
  440.  
  441. -- // Checks If The Player Is Behind A Wall Or Something Else
  442. Script.Functions.RayCastCheck = LPH_NO_VIRTUALIZE(function(Part, PartDescendant)
  443. local Character = Client.Character or Client.CharacterAdded.Wait(Client.CharacterAdded)
  444. local Origin = Camera.CFrame.Position
  445.  
  446. local RayCastParams = RaycastParams.new()
  447. RayCastParams.FilterType = Enum.RaycastFilterType.Blacklist
  448. RayCastParams.FilterDescendantsInstances = {Character, Camera}
  449.  
  450. local Result = Workspace.Raycast(Workspace, Origin, Part.Position - Origin, RayCastParams)
  451.  
  452. if (Result) then
  453. local PartHit = Result.Instance
  454. local Visible = (not PartHit or Instance.new("Part").IsDescendantOf(PartHit, PartDescendant))
  455.  
  456. return Visible
  457. end
  458. return false
  459. end)
  460.  
  461. -- // Gets The Part From An Object
  462. Script.Functions.GetParts = LPH_NO_VIRTUALIZE(function(Object)
  463. if string.find(Object.Name, "Gun") then
  464. return
  465. end
  466. if table.find({"Part", "MeshPart", "BasePart"}, Object.ClassName) then
  467. return true
  468. end
  469. end)
  470.  
  471. -- // Random Number To Compare
  472. Script.Functions.CalculateChance = LPH_NO_VIRTUALIZE(function(Percentage)
  473. Percentage = math.floor(Percentage)
  474. local chance = math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100) / 100
  475.  
  476. return chance < Percentage / 100
  477. end)
  478.  
  479. -- // Check If Crew Folder Is A Thing
  480. Script.Functions.FindCrew = LPH_NO_VIRTUALIZE(function(Player)
  481. 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
  482. if Client.DataFolder.Information:FindFirstChild("Crew").Value ~= nil and Player.DataFolder.Information:FindFirstChild("Crew").Value ~= nil and Player.DataFolder.Information:FindFirstChild("Crew").Value ~= "" and Client.DataFolder.Information:FindFirstChild("Crew").Value ~= "" then
  483. return true
  484. end
  485. end
  486. return false
  487. end)
  488.  
  489. -- // Splits The Gun Name And Splits []
  490. Script.Functions.GetGunName = LPH_NO_VIRTUALIZE(function(Name)
  491. local split = string.split(string.split(Name, "[")[2], "]")[1]
  492. return split
  493. end)
  494.  
  495. -- // Gets Current Gun
  496. Script.Functions.GetCurrentWeaponName = LPH_NO_VIRTUALIZE(function()
  497. if Client.Character and Client.Character:FindFirstChildWhichIsA("Tool") then
  498. local Tool = Client.Character:FindFirstChildWhichIsA("Tool")
  499. 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
  500. return Script.Functions.GetGunName(Tool.Name)
  501. end
  502. end
  503. return nil
  504. end)
  505.  
  506. -- // Drawing Function With Property Attached
  507. Script.Functions.NewDrawing = LPH_NO_VIRTUALIZE(function(Type, Properties)
  508. local NewDrawing = Drawing.new(Type)
  509.  
  510. for i,v in next, Properties or {} do
  511. NewDrawing[i] = v
  512. end
  513. return NewDrawing
  514. end)
  515.  
  516. -- // Draws For The New Players Joining For Esp
  517. Script.Functions.NewPlayer = LPH_NO_VIRTUALIZE(function(Player)
  518. Script.EspPlayers[Player] = {
  519. Name = Script.Functions.NewDrawing("Text", {Color = Color3.fromRGB(255,2550, 255), Outline = true, Visible = false, Center = true, Size = 13, Font = 0}),
  520. BoxOutline = Script.Functions.NewDrawing("Square", {Color = Color3.fromRGB(0, 0, 0), Thickness = 3, Visible = false}),
  521. Box = Script.Functions.NewDrawing("Square", {Color = Color3.fromRGB(255, 255, 255), Thickness = 1, Visible = false}),
  522. HealthBarOutline = Script.Functions.NewDrawing("Line", {Color = Color3.fromRGB(0, 0, 0), Thickness = 3, Visible = false}),
  523. HealthBar = Script.Functions.NewDrawing("Line", {Color = Color3.fromRGB(0, 255, 0), Thickness = 1, Visible = false}),
  524. HealthText = Script.Functions.NewDrawing("Text", {Color = Color3.fromRGB(0, 255, 0), Outline = true, Visible = false, Center = true, Size = 13, Font = 0}),
  525. Distance = Script.Functions.NewDrawing("Text", {Color = Color3.fromRGB(255, 255, 255), Outline = true, Visible = false, Center = true, Size = 13, Font = 0})
  526. }
  527. end)
  528.  
  529. -- // Gets The Closest Part From Cursor
  530. Script.Functions.GetClosestBodyPart = LPH_NO_VIRTUALIZE(function(Char)
  531. local Distance = math.huge
  532. local ClosestPart = nil
  533. local Filterd = {}
  534.  
  535. if not (Char and Char:IsA("Model")) then
  536. return ClosestPart
  537. end
  538.  
  539. local Parts = Char:GetChildren()
  540. for _, v in pairs(Parts) do
  541. if Script.Functions.GetParts(v) and Script.Functions.OnScreen(v) then
  542. table.insert(Filterd, v)
  543. for _, Part in pairs(Filterd) do
  544. local Magnitude = Script.Functions.GetMagnitudeFromMouse(Part)
  545. if Magnitude < Distance then
  546. ClosestPart = Part
  547. Distance = Magnitude
  548. end
  549. end
  550. end
  551. end
  552. return ClosestPart
  553. end)
  554.  
  555. -- // Gets The Closest Point From Cursor
  556. Script.Functions.GetClosestPointOfPart = LPH_NO_VIRTUALIZE(function(Part)
  557. local NearestPosition = nil
  558. if Part ~= nil then
  559. local Hit, Half = Mouse.Hit.Position, Part.Size * 0.5
  560. local Transform = Part.CFrame:PointToObjectSpace(Mouse.Hit.Position)
  561. NearestPosition = Part.CFrame * Vector3.new(math.clamp(Transform.X, -Half.X, Half.X),math.clamp(Transform.Y, -Half.Y, Half.Y),math.clamp(Transform.Z, -Half.Z, Half.Z))
  562. end
  563. return NearestPosition
  564. end)
  565.  
  566. -- // Gets The Closest Player For Cursor (Silent Aim)
  567. Script.Functions.GetClosestPlayer = LPH_NO_VIRTUALIZE(function()
  568. local Target = nil
  569. local Closest = math.huge
  570. local HitChance = Script.Functions.CalculateChance(Arceus.Silent.HitChance)
  571.  
  572. if not HitChance then
  573. return nil
  574. end
  575. for _, v in pairs(Players:GetPlayers()) do
  576. if v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart") then
  577. if not Script.Functions.OnScreen(v.Character.HumanoidRootPart) then
  578. continue
  579. end
  580. if Arceus.Silent.WallCheck and not Script.Functions.RayCastCheck(v.Character.HumanoidRootPart, v.Character) then
  581. continue
  582. end
  583. if Arceus.Silent.CheckIf_KO and v.Character:FindFirstChild("BodyEffects") then
  584. local KoCheck = v.Character.BodyEffects:FindFirstChild("K.O").Value
  585. local Grabbed = v.Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  586. if KoCheck or Grabbed then
  587. continue
  588. end
  589. end
  590. if Arceus.Silent.CheckIf_TargetDeath and v.Character:FindFirstChild("Humanoid") then
  591. if v.Character.Humanoid.health < 4 then
  592. continue
  593. end
  594. end
  595. if Arceus.Both.VisibleCheck and v.Character:FindFirstChild("Head") then
  596. if v.Character.Head.Transparency > 0.5 then
  597. continue
  598. end
  599. end
  600. if Arceus.Both.CrewCheck and Script.Functions.FindCrew(v) and v.DataFolder.Information:FindFirstChild("Crew").Value == Client.DataFolder.Information:FindFirstChild("Crew").Value then
  601. continue
  602. end
  603. if Arceus.Both.TeamCheck then
  604. if v.Team ~= Client.Team then
  605. continue
  606. end
  607. end
  608. if Arceus.Both.FriendCheck then
  609. if not table.find(Script.Friends, v.UserId) then
  610. continue
  611. end
  612. end
  613. local Distance = Script.Functions.GetMagnitudeFromMouse(v.Character.HumanoidRootPart)
  614.  
  615. if (Distance < Closest and Script.Drawing.SilentCircle.Radius + 10 > Distance) then
  616. Closest = Distance
  617. Target = v
  618. end
  619. end
  620. end
  621.  
  622. SilentTarget = Target
  623. end)
  624.  
  625. -- // Gets Closest Player From Mouse (AimAssist)
  626. Script.Functions.GetClosestPlayer2 = LPH_NO_VIRTUALIZE(function()
  627. local Target = nil
  628. local Distance = nil
  629. local Closest = math.huge
  630.  
  631. for _, v in pairs(Players:GetPlayers()) do
  632. if v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart") then
  633. if not Script.Functions.OnScreen(v.Character.HumanoidRootPart) then
  634. continue
  635. end
  636. if Arceus.AimAssist.WallCheck and not Script.Functions.RayCastCheck(v.Character.HumanoidRootPart, v.Character) then
  637. continue
  638. end
  639. local Distance = Script.Functions.GetMagnitudeFromMouse(v.Character.HumanoidRootPart)
  640.  
  641. if Distance < Closest then
  642. if (Arceus.AimAssist.UseCircleRadius and Script.Drawing.AimAssistCircle.Radius + 10 < Distance) then continue end
  643. Closest = Distance
  644. Target = v
  645. end
  646. end
  647. end
  648.  
  649. if Script.Functions.Alive(Target) then
  650. if Arceus.Both.VisibleCheck then
  651. if Target.Character.Head.Transparency > 0.5 then
  652. return nil
  653. end
  654. end
  655. if Arceus.Both.CrewCheck and Script.Functions.FindCrew(Target) and Target.DataFolder.Information:FindFirstChild("Crew").Value == Client.DataFolder.Information:FindFirstChild("Crew").Value then
  656. return nil
  657. end
  658. end
  659. if Arceus.Both.TeamCheck and Target then
  660. if Target.Team == Client.Team then
  661. return nil
  662. end
  663. end
  664. if Arceus.Both.FriendCheck then
  665. if table.find(Script.Friends, Target.UserId) then
  666. return nil
  667. end
  668. end
  669.  
  670. AimTarget = Target
  671. end)
  672.  
  673. -- // Server Side Mouse Position Changer
  674. local OldIndex = nil
  675. OldIndex = hookmetamethod(game, "__index", LPH_NO_VIRTUALIZE(function(self, Index)
  676. if not checkcaller() and Mouse and self == Mouse and Index == "Hit" and Arceus.Silent.Enabled and AntiAimViewer then
  677. if Script.Functions.Alive(SilentTarget) and Players[tostring(SilentTarget)].Character:FindFirstChild(Arceus.Silent.Part) then
  678. local EndPoint = nil
  679. local TargetCF = nil
  680. local TargetVel = Players[tostring(SilentTarget)].Character.HumanoidRootPart.Velocity
  681. local TargetMov = Players[tostring(SilentTarget)].Character.Humanoid.MoveDirection
  682.  
  683. if Arceus.Silent.ClosestPoint then
  684. TargetCF = ClosestPointCF
  685. else
  686. TargetCF = Players[tostring(SilentTarget)].Character[Arceus.Silent.Part].CFrame
  687. end
  688.  
  689. if Arceus.Both.DetectDesync then
  690. local Magnitude = TargetVel.magnitude
  691. local Magnitude2 = TargetMov.magnitude
  692. if Magnitude > Arceus.Both.DesyncDetection then
  693. DetectedDesync = true
  694. elseif Magnitude < 1 and Magnitude2 > 0.01 then
  695. DetectedDesync = true
  696. elseif Magnitude > 5 and Magnitude2 < 0.01 then
  697. DetectedDesync = true
  698. else
  699. DetectedDesync = false
  700. end
  701. else
  702. DetectedDesync = false
  703. end
  704. if Arceus.Silent.AntiGroundShots then
  705. if TargetVel.Y < Arceus.Silent.WhenAntiGroundActivate then
  706. DetectedFreeFall = true
  707. else
  708. DetectedFreeFall = false
  709. end
  710. end
  711. if Arceus.Both.DetectUnderGround then
  712. if TargetVel.Y < Arceus.Both.UnderGroundDetection then
  713. DetectedUnderGround = true
  714. else
  715. DetectedUnderGround = false
  716. end
  717. else
  718. DetectedUnderGround = false
  719. end
  720.  
  721. if TargetCF ~= nil then
  722. if DetectedDesync then
  723. local MoveDirection = TargetMov * 16
  724. EndPoint = TargetCF + (MoveDirection * Arceus.Silent.PredictionVelocity)
  725. elseif DetectedUnderGround then
  726. EndPoint = TargetCF + (Vector3.new(TargetVel.X, 0, TargetVel.Z) * Arceus.Silent.PredictionVelocity)
  727. elseif DetectedFreeFall then
  728. EndPoint = TargetCF + (Vector3.new(TargetVel.X, (TargetVel.Y * Arceus.Silent.AntiGroundValue), TargetVel.Z) * Arceus.Silent.PredictionVelocity)
  729. elseif Arceus.Silent.PredictMovement then
  730. EndPoint = TargetCF + (Vector3.new(TargetVel.X, (TargetVel.Y * 0.5), TargetVel.Z) * Arceus.Silent.PredictionVelocity)
  731. else
  732. EndPoint = TargetCF
  733. end
  734. if Arceus.Silent.Humanize then
  735. local HumanizeValue = Arceus.Silent.HumanizeValue
  736. EndPoint = (EndPoint + Script.Functions.RandomVec(HumanizeValue, 0.01))
  737. end
  738. end
  739.  
  740. if EndPoint ~= nil then
  741. return (Index == "Hit" and EndPoint)
  742. end
  743. end
  744. end
  745. return OldIndex(self, Index)
  746. end))
  747.  
  748. -- // Silent Aim Misc
  749. Script.Functions.SilentMisc = LPH_NO_VIRTUALIZE(function()
  750. if Arceus.Silent.Enabled and Script.Functions.Alive(SilentTarget) then
  751. if Arceus.Silent.UseAirPart then
  752. if SilentTarget.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then
  753. Arceus.Silent.Part = Arceus.Silent.AirPart
  754. else
  755. Arceus.Silent.Part = OldSilentAimPart
  756. end
  757. end
  758. if Arceus.Silent.TriggerBot then
  759. mouse1click()
  760. end
  761. end
  762. if Arceus.Silent.AutoPrediction then
  763. local ping = math.floor(game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValue())
  764. if ping < 10 then
  765. Arceus.Silent.PredictionVelocity = 0.07
  766. elseif ping < 20 then
  767. Arceus.Silent.PredictionVelocity = 0.155
  768. elseif ping < 30 then
  769. Arceus.Silent.PredictionVelocity = 0.132
  770. elseif ping < 40 then
  771. Arceus.Silent.PredictionVelocity = 0.136
  772. elseif ping < 50 then
  773. Arceus.Silent.PredictionVelocity = 0.130
  774. elseif ping < 60 then
  775. Arceus.Silent.PredictionVelocity = 0.136
  776. elseif ping < 70 then
  777. Arceus.Silent.PredictionVelocity = 0.138
  778. elseif ping < 80 then
  779. Arceus.Silent.PredictionVelocity = 0.138
  780. elseif ping < 90 then
  781. Arceus.Silent.PredictionVelocity = 0.146
  782. elseif ping < 100 then
  783. Arceus.Silent.PredictionVelocity = 0.14322
  784. elseif ping < 110 then
  785. Arceus.Silent.PredictionVelocity = 0.146
  786. elseif ping < 120 then
  787. Arceus.Silent.PredictionVelocity = 0.149
  788. elseif ping < 130 then
  789. Arceus.Silent.PredictionVelocity = 0.151
  790. elseif ping < 140 then
  791. Arceus.Silent.PredictionVelocity = 0.1223333
  792. elseif ping < 150 then
  793. Arceus.Silent.PredictionVelocity = 0.15
  794. elseif ping < 160 then
  795. Arceus.Silent.PredictionVelocity = 0.16
  796. elseif ping < 170 then
  797. Arceus.Silent.PredictionVelocity = 0.1923111
  798. elseif ping < 180 then
  799. Arceus.Silent.PredictionVelocity = 0.19284
  800. elseif ping > 180 then
  801. Arceus.Silent.PredictionVelocity = 0.166547
  802. end
  803. end
  804. end)
  805.  
  806. -- // The AimAssist Mouse Dragging/Check Functions
  807. Script.Functions.MouseChanger = LPH_NO_VIRTUALIZE(function()
  808. if Arceus.AimAssist.Enabled and Script.Functions.Alive(AimTarget) and Players[tostring(AimTarget)].Character:FindFirstChild(Arceus.AimAssist.Part) and Script.Functions.OnScreen(Players[tostring(AimTarget)].Character[Arceus.AimAssist.Part]) then
  809. local EndPosition = nil
  810. local TargetPos = Players[tostring(AimTarget)].Character[Arceus.AimAssist.Part].Position
  811. local TargetVel = Players[tostring(AimTarget)].Character[Arceus.AimAssist.Part].Velocity
  812. local TargetMov = Players[tostring(AimTarget)].Character.Humanoid.MoveDirection
  813.  
  814. if Arceus.Both.DetectDesync then
  815. local Magnitude = TargetVel.magnitude
  816. local Magnitude2 = TargetMov.magnitude
  817. if Magnitude > Arceus.Both.DesyncDetection then
  818. DetectedDesyncV2 = true
  819. elseif Magnitude < 1 and Magnitude2 > 0.01 then
  820. DetectedDesyncV2 = true
  821. elseif Magnitude > 5 and Magnitude2 < 0.01 then
  822. DetectedDesyncV2 = true
  823. else
  824. DetectedDesyncV2 = false
  825. end
  826. else
  827. DetectedDesyncV2 = false
  828. end
  829. if Arceus.Both.DetectUnderGround then
  830. if TargetVel.Y < Arceus.Both.UnderGroundDetection then
  831. DetectedUnderGroundV2 = true
  832. else
  833. DetectedUnderGroundV2 = false
  834. end
  835. else
  836. DetectedUnderGroundV2 = false
  837. end
  838.  
  839. if Script.Functions.Alive(Client) then
  840. if Arceus.AimAssist.DisableLocalDeath then
  841. if Client.Character.Humanoid.health < 4 then
  842. AimTarget = nil
  843. IsTargetting = false
  844. return
  845. end
  846. end
  847. if Arceus.AimAssist.DisableOutSideCircle then
  848. local Magnitude = Script.Functions.GetMagnitudeFromMouse(AimTarget.Character.HumanoidRootPart)
  849. if Script.Drawing.AimAssistCircle.Radius < Magnitude then
  850. AimTarget = nil
  851. IsTargetting = false
  852. return
  853. end
  854. end
  855. end
  856.  
  857. if Arceus.AimAssist.DisableOn_KO and AimTarget.Character:FindFirstChild("BodyEffects") then
  858. local KoCheck = AimTarget.Character.BodyEffects:FindFirstChild("K.O").Value
  859. local Grabbed = AimTarget.Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  860. if KoCheck or Grabbed then
  861. AimTarget = nil
  862. IsTargetting = false
  863. return
  864. end
  865. end
  866. if Arceus.AimAssist.DisableTargetDeath then
  867. if AimTarget.Character.Humanoid.health < 4 then
  868. AimTarget = nil
  869. IsTargetting = false
  870. return
  871. end
  872. end
  873.  
  874. if DetectedDesyncV2 and Arceus.AimAssist.PredictMovement then
  875. local MoveDirection = TargetMov * 16
  876. EndPosition = Camera:WorldToScreenPoint(TargetPos + (MoveDirection * Arceus.AimAssist.PredictionVelocity))
  877. elseif DetectedUnderGroundV2 and Arceus.AimAssist.PredictMovement then
  878. EndPosition = Camera:WorldToScreenPoint(TargetPos + (Vector3.new(TargetVel.X, 0, TargetVel.Z) * Arceus.AimAssist.PredictionVelocity))
  879. elseif Arceus.AimAssist.PredictMovement then
  880. if Arceus.AimAssist.UseShake and Script.Functions.Alive(Client) then
  881. local Shake = Arceus.AimAssist.ShakeValue / 100
  882. local Mag = math.ceil((TargetPos - Client.Character.HumanoidRootPart.Position).Magnitude)
  883. EndPosition = Camera:WorldToScreenPoint(TargetPos + (TargetVel * Arceus.AimAssist.PredictionVelocity) + Script.Functions.RandomVec(Mag * Shake, 0.1))
  884. else
  885. EndPosition = Camera:WorldToScreenPoint(TargetPos + (TargetVel * Arceus.AimAssist.PredictionVelocity))
  886. end
  887. else
  888. if Arceus.AimAssist.UseShake and Script.Functions.Alive(Client) then
  889. local Shake = Arceus.AimAssist.ShakeValue / 100
  890. local Mag = math.ceil((TargetPos - Client.Character.HumanoidRootPart.Position).Magnitude)
  891. EndPosition = Camera:WorldToScreenPoint(TargetPos + Script.Functions.RandomVec(Mag * Shake, 0.1))
  892. else
  893. EndPosition = Camera:WorldToScreenPoint(TargetPos)
  894. end
  895. end
  896.  
  897. if EndPosition ~= nil then
  898. local InCrementX = (EndPosition.X - Mouse.X) * Arceus.AimAssist.Smoothness_X
  899. local InCrementY = (EndPosition.Y - Mouse.Y) * Arceus.AimAssist.Smoothness_Y
  900. mousemoverel(InCrementX, InCrementY)
  901. end
  902. end
  903. end)
  904.  
  905. --// Update Size/Position Of Circle
  906. Script.Functions.UpdateFOV = LPH_NO_VIRTUALIZE(function()
  907. if (not Script.Drawing.SilentCircle and not Script.Drawing.AimAssistCircle) then
  908. return Script.Drawing.SilentCircle and Script.Drawing.AimAssistCircle
  909. end
  910.  
  911. Script.Drawing.AimAssistCircle.Visible = Arceus.AimAssistFov.Visible
  912. Script.Drawing.AimAssistCircle.Filled = Arceus.AimAssistFov.Filled
  913. Script.Drawing.AimAssistCircle.Color = Arceus.AimAssistFov.Color
  914. Script.Drawing.AimAssistCircle.Transparency = Arceus.AimAssistFov.Transparency
  915. Script.Drawing.AimAssistCircle.Position = Vector2.new(Mouse.X, Mouse.Y + GuiS:GetGuiInset().Y)
  916. Script.Drawing.AimAssistCircle.Radius = Arceus.AimAssistFov.Radius * 3
  917.  
  918. Script.Drawing.SilentCircle.Visible = Arceus.SilentFov.Visible
  919. Script.Drawing.SilentCircle.Color = Arceus.SilentFov.Color
  920. Script.Drawing.SilentCircle.Filled = Arceus.SilentFov.Filled
  921. Script.Drawing.SilentCircle.Transparency = Arceus.SilentFov.Transparency
  922. Script.Drawing.SilentCircle.Position = Vector2.new(Mouse.X, Mouse.Y + GuiS:GetGuiInset().Y)
  923. Script.Drawing.SilentCircle.Radius = Arceus.SilentFov.Radius * 3
  924.  
  925. if Arceus.RangeFov.Enabled or Arceus.GunFov.Enabled then
  926. local CurrentGun = Script.Functions.GetCurrentWeaponName()
  927. if Arceus.GunFov.Enabled then
  928. local WeaponSettings = Arceus.GunFov[CurrentGun]
  929. if WeaponSettings ~= nil then
  930. Arceus.SilentFov.Radius = WeaponSettings.Fov
  931. end
  932. end
  933. if Arceus.RangeFov.Enabled then
  934. local WeaponSettingsV2 = Arceus.RangeFov[CurrentGun]
  935. if WeaponSettingsV2 ~= nil then
  936. if Script.Functions.Alive(SilentTarget) and Script.Functions.Alive(Client) then
  937. local Magnitude = (SilentTarget.Character.HumanoidRootPart.Position - Client.Character.HumanoidRootPart.Position).Magnitude
  938. if Magnitude < Arceus.RangeFov.Close_Activation then
  939. Arceus.SilentFov.Radius = WeaponSettingsV2.Close
  940. elseif Magnitude < Arceus.RangeFov.Medium_Activation then
  941. Arceus.SilentFov.Radius = WeaponSettingsV2.Med
  942. elseif Magnitude < Arceus.RangeFov.Far_Activation then
  943. Arceus.SilentFov.Radius = WeaponSettingsV2.Far
  944. end
  945. end
  946. end
  947. end
  948. end
  949. end)
  950.  
  951. -- // Updates Esp Posistions
  952. Script.Functions.UpdateEsp = LPH_NO_VIRTUALIZE(function()
  953. for i,v in pairs(Script.EspPlayers) do
  954. if Arceus.Esp.Enabled and i ~= Client and i.Character and i.Character:FindFirstChild("Humanoid") and i.Character:FindFirstChild("HumanoidRootPart") and i.Character:FindFirstChild("Head") then
  955. local Hum = i.Character.Humanoid
  956. local Hrp = i.Character.HumanoidRootPart
  957.  
  958. local Vector, OnScreen = Camera:WorldToViewportPoint(i.Character.HumanoidRootPart.Position)
  959. local Size = (Camera:WorldToViewportPoint(Hrp.Position - Vector3.new(0, 3, 0)).Y - Camera:WorldToViewportPoint(Hrp.Position + Vector3.new(0, 2.6, 0)).Y) / 2
  960. local BoxSize = Vector2.new(math.floor(Size * 1.5), math.floor(Size * 1.9))
  961. local BoxPos = Vector2.new(math.floor(Vector.X - Size * 1.5 / 2), math.floor(Vector.Y - Size * 1.6 / 2))
  962. local BottomOffset = BoxSize.Y + BoxPos.Y + 1
  963.  
  964. if OnScreen then
  965. if Arceus.Esp.Name.Enabled then
  966. v.Name.Position = Vector2.new(BoxSize.X / 2 + BoxPos.X, BoxPos.Y - 16)
  967. v.Name.Outline = Arceus.Esp.Name.OutLine
  968. v.Name.Text = tostring(i)
  969. v.Name.Color = Arceus.Esp.Name.Color
  970. v.Name.OutlineColor = Color3.fromRGB(0, 0, 0)
  971. v.Name.Font = 0
  972. v.Name.Size = 16
  973.  
  974. v.Name.Visible = true
  975. else
  976. v.Name.Visible = false
  977. end
  978. if Arceus.Esp.Distance.Enabled and Client.Character and Client.Character:FindFirstChild("HumanoidRootPart") then
  979. v.Distance.Position = Vector2.new(BoxSize.X / 2 + BoxPos.X, BottomOffset)
  980. v.Distance.Outline = Arceus.Esp.Distance.OutLine
  981. v.Distance.Text = "[" .. math.floor((Hrp.Position - Client.Character.HumanoidRootPart.Position).Magnitude) .. "m]"
  982. v.Distance.Color = Arceus.Esp.Distance.Color
  983. v.Distance.OutlineColor = Color3.fromRGB(0, 0, 0)
  984. BottomOffset = BottomOffset + 15
  985.  
  986. v.Distance.Font = 0
  987. v.Distance.Size = 16
  988.  
  989. v.Distance.Visible = true
  990. else
  991. v.Distance.Visible = false
  992. end
  993. if Arceus.Esp.Box.Enabled then
  994. v.BoxOutline.Size = BoxSize
  995. v.BoxOutline.Position = BoxPos
  996. v.BoxOutline.Visible = Arceus.Esp.Box.OutLine
  997. v.BoxOutline.Color = Color3.fromRGB(0, 0, 0)
  998.  
  999. v.Box.Size = BoxSize
  1000. v.Box.Position = BoxPos
  1001. v.Box.Color = Arceus.Esp.Box.Color
  1002. v.Box.Visible = true
  1003. else
  1004. v.BoxOutline.Visible = false
  1005. v.Box.Visible = false
  1006. end
  1007. if Arceus.Esp.HealthBar.Enabled then
  1008. v.HealthBar.From = Vector2.new((BoxPos.X - 5), BoxPos.Y + BoxSize.Y)
  1009. v.HealthBar.To = Vector2.new(v.HealthBar.From.X, v.HealthBar.From.Y - (Hum.Health / Hum.MaxHealth) * BoxSize.Y)
  1010. v.HealthBar.Color = Arceus.Esp.HealthBar.Color
  1011. v.HealthBar.Visible = true
  1012.  
  1013. v.HealthBarOutline.From = Vector2.new(v.HealthBar.From.X, BoxPos.Y + BoxSize.Y + 1)
  1014. v.HealthBarOutline.To = Vector2.new(v.HealthBar.From.X, (v.HealthBar.From.Y - 1 * BoxSize.Y) -1)
  1015. v.HealthBarOutline.Color = Color3.fromRGB(0, 0, 0)
  1016. v.HealthBarOutline.Visible = Arceus.Esp.HealthBar.OutLine
  1017. else
  1018. v.HealthBarOutline.Visible = false
  1019. v.healthBar.Visible = false
  1020. end
  1021. if Arceus.Esp.HealthText.Enabled then
  1022. v.HealthText.Text = tostring(math.floor((Hum.Health / Hum.MaxHealth) * 100 + 0.5))
  1023. v.HealthText.Position = Vector2.new((BoxPos.X - 20), (BoxPos.Y + BoxSize.Y - 1 * BoxSize.Y) -1)
  1024. v.HealthText.Color = Arceus.Esp.HealthText.Color
  1025. v.HealthText.OutlineColor = Color3.fromRGB(0, 0, 0)
  1026. v.HealthText.Outline = Arceus.Esp.HealthText.OutLine
  1027.  
  1028. v.HealthText.Font = 0
  1029. v.HealthText.Size = 16
  1030.  
  1031. v.HealthText.Visible = true
  1032. else
  1033. v.HealthText.Visible = false
  1034. end
  1035. else
  1036. v.Name.Visible = false
  1037. v.BoxOutline.Visible = false
  1038. v.Box.Visible = false
  1039. v.HealthBarOutline.Visible = false
  1040. v.HealthBar.Visible = false
  1041. v.HealthText.Visible = false
  1042. v.Distance.Visible = false
  1043. end
  1044. else
  1045. v.Name.Visible = false
  1046. v.BoxOutline.Visible = false
  1047. v.Box.Visible = false
  1048. v.HealthBarOutline.Visible = false
  1049. v.HealthBar.Visible = false
  1050. v.HealthText.Visible = false
  1051. v.Distance.Visible = false
  1052. end
  1053. end
  1054. end)
  1055.  
  1056. -- // Client Fps (EXECUTES PER FRAME)
  1057. RS.Heartbeat:Connect(LPH_NO_VIRTUALIZE(function()
  1058. Script.Functions.GetClosestPlayer()
  1059. Script.Functions.SilentMisc()
  1060. Script.Functions.MouseChanger()
  1061. end))
  1062.  
  1063. -- // Server Tick (EXECUTES PER TICK)
  1064. RS.RenderStepped:Connect(LPH_NO_VIRTUALIZE(function()
  1065. Script.Functions.UpdateEsp()
  1066. Script.Functions.UpdateFOV()
  1067. if Arceus.Silent.Enabled and Arceus.Silent.ClosestPoint and Script.Functions.Alive(SilentTarget) and Players[tostring(SilentTarget)].Character:FindFirstChild(Arceus.Silent.Part) then
  1068. local ClosestPoint = Script.Functions.GetClosestPointOfPart(Players[tostring(SilentTarget)].Character[Arceus.Silent.Part])
  1069. ClosestPointCF = CFrame.new(ClosestPoint.X, ClosestPoint.Y, ClosestPoint.Z)
  1070. end
  1071. if Arceus.AimAssist.Enabled and Script.Functions.Alive(AimTarget) and Arceus.Silent.ClosestPart and Script.Functions.Alive(SilentTarget) then
  1072. local currentpart = tostring(Script.Functions.GetClosestBodyPart(AimTarget.Character))
  1073. if Arceus.AimAssist.ClosestPart then
  1074. Arceus.AimAssist.Part = currentpart
  1075. end
  1076. if Arceus.Silent.ClosestPart then
  1077. Arceus.Silent.Part = currentpart
  1078. OldSilentAimPart = Arceus.Silent.Part
  1079. end
  1080. return
  1081. end
  1082. if Arceus.AimAssist.Enabled and Arceus.AimAssist.ClosestPart and Script.Functions.Alive(AimTarget) then
  1083. Arceus.AimAssist.Part = tostring(Script.Functions.GetClosestBodyPart(AimTarget.Character))
  1084. end
  1085. if Arceus.Silent.Enabled and Arceus.Silent.ClosestPart and Script.Functions.Alive(SilentTarget) then
  1086. Arceus.Silent.Part = tostring(Script.Functions.GetClosestBodyPart(SilentTarget.Character))
  1087. OldSilentAimPart = Arceus.Silent.Part
  1088. end
  1089. end))
  1090.  
  1091. -- // Checks Everyone In The Server And Puts It In A Table
  1092. for _, Player in ipairs(Players:GetPlayers()) do
  1093. if (Player ~= Client and Client:IsFriendsWith(Player.UserId)) then
  1094. table.insert(Script.Friends, Player)
  1095. end
  1096. Script.Functions.NewPlayer(Player)
  1097. end
  1098.  
  1099. -- // Checks When Players Joins And Adds Them To A Table
  1100. Players.PlayerAdded:Connect(function(Player)
  1101. if (Client:IsFriendsWith(Player.UserId)) then
  1102. table.insert(Script.Friends, Player)
  1103. end
  1104. Script.Functions.NewPlayer(Player)
  1105. end)
  1106.  
  1107. -- // Checks If A Player Left And Removes Them From The Table
  1108. Players.PlayerRemoving:Connect(function(Player)
  1109. local i = table.find(Script.Friends, Player)
  1110. if (i) then
  1111. table.remove(Script.Friends, i)
  1112. end
  1113. for i,v in pairs(Script.EspPlayers[Player]) do
  1114. v:Remove()
  1115. end
  1116. Script.EspPlayers[Player] = nil
  1117. end)
  1118.  
  1119. end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement