Advertisement
6ixbesthvher

Untitled

Jan 28th, 2022
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.94 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local ReplicatedFirst = game:GetService("ReplicatedFirst")
  3. local UserInputService = game:GetService("UserInputService")
  4. local RunService = game:GetService("RunService")
  5. local Lighting = game:GetService("Lighting")
  6. local Players = game:GetService("Players")
  7.  
  8. local LocalPlayer = Players.LocalPlayer
  9. local PlayerGui = LocalPlayer.PlayerGui
  10. local Mouse = LocalPlayer:GetMouse()
  11. local Camera = workspace.CurrentCamera
  12. RunService.RenderStepped:Connect(function()
  13. Camera = workspace.CurrentCamera
  14. end)
  15.  
  16. local function Create(Object, Properties, Parent)
  17. local Obj = Instance.new(Object)
  18.  
  19. for i,v in pairs (Properties) do
  20. Obj[i] = v
  21. end
  22. if Parent ~= nil then
  23. Obj.Parent = Parent
  24. end
  25.  
  26. return Obj
  27. end
  28.  
  29. local function GetCharacter()
  30. end
  31. local function GetHumanoid()
  32. end
  33. local function GetHealth()
  34. end
  35. local function GetBodypart()
  36. end
  37.  
  38.  
  39. local menu
  40. do
  41. local library = loadstring(game:HttpGet("https://pastebin.com/raw/Y9GV7aj9"))()
  42.  
  43. menu = library.new([[6ixware<font color="rgb(78, 93, 234)">.nn</font>]], "nemv2\\")
  44. local tabs = {
  45. menu.new_tab("http://www.roblox.com/asset/?id=7300477598"),
  46. menu.new_tab("http://www.roblox.com/asset/?id=7300535052"),
  47. menu.new_tab("http://www.roblox.com/asset/?id=7300480952"),
  48. menu.new_tab("http://www.roblox.com/asset/?id=7300486042"),
  49. menu.new_tab("http://www.roblox.com/asset/?id=7300489566"),
  50. }
  51.  
  52. do
  53. local _menu = tabs[5].new_section("menu")
  54.  
  55. local all_cfgs
  56.  
  57. local configs = _menu.new_sector("configs")
  58. local text
  59. local list = configs.element("Scroll", "config list", {options = {"none"}}, function(State)
  60. text:set_value({Text = State.Scroll})
  61. end)
  62. text = configs.element("TextBox", "config name")
  63. configs.element("Button", "save", nil, function()
  64. if menu.values[5].menu.configs["config name"].Text ~= "none" then
  65. menu.save_cfg(menu.values[5].menu.configs["config name"].Text)
  66. end
  67. end)
  68. configs.element("Button", "load", nil, function()
  69. if menu.values[5].menu.configs["config name"].Text ~= "none" then
  70. menu.load_cfg(menu.values[5].menu.configs["config name"].Text)
  71. end
  72. end)
  73.  
  74. local function update_cfgs()
  75. all_cfgs = listfiles("nemv2\\")
  76. for _,cfg in next, all_cfgs do
  77. all_cfgs[_] = string.gsub(string.gsub(cfg, "nemv2\\", ""), ".txt", "")
  78. list:add_value(all_cfgs[_])
  79. end
  80. end update_cfgs()
  81.  
  82. task.spawn(function()
  83. while true do
  84. wait(1)
  85. update_cfgs()
  86. end
  87. end)
  88.  
  89. local methods = _menu.new_sector("methods", "Right")
  90. methods.element("Combo", "mouse types", {options = {"target", "hit"}})
  91. methods.element("Dropdown", "ray method", {options = {"none", "findpartonray", "findpartonraywithignorelist", "raycast"}})
  92. methods.element("Slider", "minimum ray ignore", {default = {min = 0, max = 100, default = 3}})
  93. methods.element("Combo", "must include", {options = {"camera", "character"}, default = {Combo = {"camera", "character"}}})
  94.  
  95. local playercheck = _menu.new_sector("player check")
  96. playercheck.element("Toggle", "free for all")
  97. playercheck.element("Toggle", "forcefield check")
  98. end
  99. do
  100. local aimbot = tabs[1].new_section("aimbot")
  101.  
  102. local main = aimbot.new_sector("main")
  103. main.element("Toggle", "enabled"):add_keybind()
  104. main.element("Dropdown", "origin", {options = {"camera", "head"}})
  105. main.element("Dropdown", "hitbox", {options = {"head", "torso"}})
  106. main.element("Toggle", "automatic fire")
  107.  
  108. local antiaim = tabs[1].new_section("antiaim")
  109.  
  110. local direction = antiaim.new_sector("direction")
  111. direction.element("Toggle", "enabled"):add_keybind()
  112. direction.element("Dropdown", "yaw base", {options = {"camera", "random", "spin"}})
  113. direction.element("Slider", "yaw offset", {default = {min = -180, max = 180, default = 0}})
  114. direction.element("Dropdown", "yaw modifier", {options = {"none", "jitter", "offset jitter"}})
  115. direction.element("Slider", "modifier offset", {default = {min = -180, max = 180, default = 0}})
  116. direction.element("Toggle", "force angles")
  117.  
  118. local fakelag = antiaim.new_sector("fakelag", "Right")
  119. fakelag.element("Toggle", "enabled"):add_keybind()
  120. fakelag.element("Dropdown", "method", {options = {"static", "random"}})
  121. fakelag.element("Slider", "limit", {default = {min = 1, max = 16, default = 6}})
  122. fakelag.element("Toggle", "visualize"):add_color(nil, true)
  123. fakelag.element("Toggle", "freeze world", nil, function(state)
  124. if menu.values[1].antiaim.fakelag["freeze world"].Toggle and menu.values[1].antiaim.fakelag["$freeze world"].Active then
  125. settings().Network.IncomingReplicationLag = 1000
  126. else
  127. settings().Network.IncomingReplicationLag = 0
  128. end
  129. end):add_keybind(nil, function(state)
  130. if menu.values[1].antiaim.fakelag["freeze world"].Toggle and menu.values[1].antiaim.fakelag["$freeze world"].Active then
  131. settings().Network.IncomingReplicationLag = 1000
  132. else
  133. settings().Network.IncomingReplicationLag = 0
  134. end
  135. end)
  136.  
  137. local Line = Drawing.new("Line")
  138. Line.Visible = false
  139. Line.Transparency = 1
  140. Line.Color = Color3.new(1,1,1)
  141. Line.Thickness = 1
  142. Line.ZIndex = 1
  143.  
  144. local EnabledPosition = Vector3.new()
  145. fakelag.element("Toggle", "blink", nil, function(State)
  146. if menu.values[1].antiaim.fakelag["blink"].Toggle and menu.values[1].antiaim.fakelag["$blink"].Active then
  147. local SelfCharacter = LocalPlayer.Character
  148. local SelfRootPart, SelfHumanoid = SelfCharacter and SelfCharacter:FindFirstChild("HumanoidRootPart"), SelfCharacter and SelfCharacter:FindFirstChildOfClass("Humanoid")
  149. if not SelfCharacter or not SelfRootPart or not SelfHumanoid then Line.Visible = false return end
  150.  
  151. EnabledPosition = SelfRootPart.Position
  152. end
  153. end):add_keybind(nil, function(State)
  154. if menu.values[1].antiaim.fakelag["blink"].Toggle and menu.values[1].antiaim.fakelag["$blink"].Active then
  155. local SelfCharacter = LocalPlayer.Character
  156. local SelfRootPart, SelfHumanoid = SelfCharacter and SelfCharacter:FindFirstChild("HumanoidRootPart"), SelfCharacter and SelfCharacter:FindFirstChildOfClass("Humanoid")
  157. if not SelfCharacter or not SelfRootPart or not SelfHumanoid then Line.Visible = false return end
  158.  
  159. EnabledPosition = SelfRootPart.Position
  160. end
  161. end)
  162.  
  163. local WasEnabled = false
  164. local FakelagLoop = RunService.Heartbeat:Connect(function()
  165. local Enabled = menu.values[1].antiaim.fakelag["blink"].Toggle and menu.values[1].antiaim.fakelag["$blink"].Active or false
  166.  
  167. local SelfCharacter = LocalPlayer.Character
  168. local SelfRootPart, SelfHumanoid = SelfCharacter and SelfCharacter:FindFirstChild("HumanoidRootPart"), SelfCharacter and SelfCharacter:FindFirstChildOfClass("Humanoid")
  169. if not SelfCharacter or not SelfRootPart or not SelfHumanoid then Line.Visible = false return end
  170.  
  171. sethiddenproperty(SelfRootPart, "NetworkIsSleeping", Enabled)
  172.  
  173. Line.Visible = Enabled
  174. local StartPos = Camera:WorldToViewportPoint(SelfRootPart.Position)
  175. Line.From = Vector2.new(StartPos.X, StartPos.Y)
  176. local EndPos, OnScreen = Camera:WorldToViewportPoint(EnabledPosition)
  177. if not OnScreen then
  178. Line.Visible = false
  179. end
  180. Line.To = Vector2.new(EndPos.X, EndPos.Y)
  181. end)
  182.  
  183. task.spawn(function()
  184. local Network = game:GetService("NetworkClient")
  185. local LagTick = 0
  186.  
  187. while true do
  188. wait(1/16)
  189. LagTick = math.clamp(LagTick + 1, 0, menu.values[1].antiaim.fakelag.limit.Slider)
  190. if menu.values[1].antiaim.fakelag.enabled.Toggle and menu.values[1].antiaim.fakelag["$enabled"].Active and LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") and LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Health > 0 then
  191. if LagTick == (menu.values[1].antiaim.fakelag.method.Dropdown == "static" and menu.values[1].antiaim.fakelag.limit.Slider or math.random(1, menu.values[1].antiaim.fakelag.limit.Slider)) then
  192. Network:SetOutgoingKBPSLimit(9e9)
  193. LagTick = 0
  194.  
  195. if LocalPlayer.Character:FindFirstChild("Fakelag") then
  196. LocalPlayer.Character:FindFirstChild("Fakelag"):ClearAllChildren()
  197. else
  198. local Folder = Instance.new("Folder")
  199. Folder.Name = "Fakelag"
  200. Folder.Parent = LocalPlayer.Character
  201. end
  202. if menu.values[1].antiaim.fakelag.visualize.Toggle then
  203. LocalPlayer.Character.Archivable = true
  204. local Clone = LocalPlayer.Character:Clone()
  205. for _,Obj in next, Clone:GetDescendants() do
  206. if Obj.Name == "HumanoidRootPart" or Obj:IsA("Humanoid") or Obj:IsA("LocalScript") or Obj:IsA("Script") or Obj:IsA("Decal") then
  207. Obj:Destroy()
  208. elseif Obj:IsA("BasePart") or Obj:IsA("Meshpart") or Obj:IsA("Part") then
  209. if Obj.Transparency == 1 then
  210. Obj:Destroy()
  211. else
  212. Obj.CanCollide = false
  213. Obj.Anchored = true
  214. Obj.Material = "ForceField"
  215. Obj.Color = menu.values[1].antiaim.fakelag["$visualize"].Color
  216. Obj.Transparency = menu.values[1].antiaim.fakelag["$visualize"].Transparency
  217. Obj.Size = Obj.Size + Vector3.new(0.03, 0.03, 0.03)
  218. end
  219. end
  220. pcall(function()
  221. Obj.CanCollide = false
  222. end)
  223. end
  224. Clone.Parent = LocalPlayer.Character.Fakelag
  225. end
  226. else
  227. Network:SetOutgoingKBPSLimit(1)
  228. end
  229. else
  230. if LocalPlayer.Character then
  231. if LocalPlayer.Character:FindFirstChild("Fakelag") then
  232. LocalPlayer.Character:FindFirstChild("Fakelag"):ClearAllChildren()
  233. else
  234. local Folder = Instance.new("Folder")
  235. Folder.Name = "Fakelag"
  236. Folder.Parent = LocalPlayer.Character
  237. end
  238. end
  239. Network:SetOutgoingKBPSLimit(9e9)
  240. end
  241. end
  242. end)
  243. end
  244. do
  245. local Circle = Drawing.new("Circle") do
  246. Circle.Color = Color3.fromRGB(255, 255, 255)
  247. Circle.Thickness = 1
  248. Circle.Transparency = 1
  249. Circle.Radius = 100
  250. Circle.Visible = false
  251.  
  252. RunService.RenderStepped:Connect(function()
  253. Circle.Position = UserInputService:GetMouseLocation()
  254. if menu.values[2].advanced["mouse offset"].enabled.Toggle then
  255. Circle.Position = Circle.Position + Vector2.new(menu.values[2].advanced["mouse offset"]["x offset"].Slider, menu.values[2].advanced["mouse offset"]["y offset"].Slider)
  256. end
  257. end)
  258. end
  259.  
  260. local aimbot = tabs[2].new_section("aimbot")
  261.  
  262. local assist = aimbot.new_sector("assist")
  263. assist.element("Toggle", "enabled"):add_keybind()
  264. assist.element("Dropdown", "hitbox", {options = {"closest", "head", "torso"}})
  265. assist.element("Slider", "smoothing", {default = {min = 0, max = 50, default = 1}})
  266.  
  267. local silent = aimbot.new_sector("silent aim")
  268. silent.element("Toggle", "enabled"):add_keybind()
  269. silent.element("Dropdown", "hitbox", {options = {"closest", "head", "torso"}})
  270. silent.element("Slider", "hitchance", {default = {min = 1, max = 100, default = 100}})
  271.  
  272. local targeting = aimbot.new_sector("targeting", "Right")
  273. targeting.element("Dropdown", "prioritize", {options = {"crosshair", "distance", "lowest hp"}})
  274. targeting.element("Toggle", "visible check")
  275. targeting.element("Slider", "max distance", {default = {min = 250, max = 15000, default = 15000}})
  276.  
  277. local fov = aimbot.new_sector("fov", "Right")
  278. fov.element("Slider", "fov size", {default = {min = 30, max = 600, default = 100}}, function(State) Circle.Radius = State.Slider end)
  279. fov.element("Toggle", "draw fov", nil, function(State) Circle.Visible = State.Toggle end):add_color({Color = Color3.fromRGB(84, 101, 255)}, nil, function(State) Circle.Color = State.Color end)
  280. fov.element("Slider", "sides", {default = {min = 15, max = 100, default = 100}}, function(State) Circle.NumSides = State.Slider end)
  281. fov.element("Slider", "thickness", {default = {min = 1, max = 4, default = 1}}, function(State) Circle.Thickness = State.Slider end)
  282.  
  283. local triggerbot = aimbot.new_sector("triggerbot")
  284. triggerbot.element("Toggle", "enabled"):add_keybind()
  285. triggerbot.element("Slider", "reaction time (ms)", {default = {min = 0, max = 500, default = 150}})
  286.  
  287. local advanced = tabs[2].new_section("advanced")
  288.  
  289. local offset = advanced.new_sector("mouse offset")
  290. offset.element("Toggle", "enabled")
  291. offset.element("Slider", "x offset", {default = {min = -100, max = 100, default = 0}})
  292. offset.element("Slider", "y offset", {default = {min = -100, max = 100, default = 0}})
  293. end
  294. do
  295. local players = tabs[3].new_section("players")
  296.  
  297. local esp = players.new_sector("esp")
  298. esp.element("Toggle", "enabled"):add_keybind()
  299. esp.element("Slider", "max distance", {default = {min = 250, max = 15000, default = 15000}})
  300.  
  301. local enemies = players.new_sector("enemies")
  302. enemies.element("Toggle", "box"):add_color({Color = Color3.fromRGB(255, 255, 255)})
  303. enemies.element("Toggle", "name"):add_color({Color = Color3.fromRGB(255, 255, 255)})
  304. enemies.element("Toggle", "health"):add_color({Color = Color3.fromRGB(0, 255, 0)})
  305. enemies.element("Toggle", "indicators"):add_color({Color = Color3.fromRGB(255, 255, 255)})
  306. enemies.element("Combo", "types", {options = {"tool", "distance"}})
  307.  
  308. local friendlies = players.new_sector("friendlies")
  309. friendlies.element("Toggle", "box"):add_color({Color = Color3.fromRGB(255, 255, 255)})
  310. friendlies.element("Toggle", "name"):add_color({Color = Color3.fromRGB(255, 255, 255)})
  311. friendlies.element("Toggle", "health"):add_color({Color = Color3.fromRGB(0, 255, 0)})
  312. friendlies.element("Toggle", "indicators"):add_color({Color = Color3.fromRGB(255, 255, 255)})
  313. friendlies.element("Combo", "types", {options = {"tool", "distance"}})
  314.  
  315. local oof = players.new_sector("out of fov", "Right")
  316. oof.element("Toggle", "enemies"):add_color({Color = Color3.fromRGB(84, 101, 255)})
  317. oof.element("Toggle", "teammates"):add_color({Color = Color3.fromRGB(84, 101, 255)})
  318. oof.element("Slider", "size", {default = {min = 10, max = 15, default = 15}})
  319. oof.element("Slider", "offset", {default = {min = 100, max = 700, default = 400}})
  320. oof.element("Combo", "settings", {options = {"outline", "blinking"}})
  321.  
  322. local function UpdateChams()
  323. for _,Player in next, Players:GetPlayers() do
  324. if Player ~= LocalPlayer then
  325. ApplyChams(Player)
  326. end
  327. end
  328. end
  329.  
  330. local chams = players.new_sector("chams", "Right")
  331. chams.element("Toggle", "enemies", nil, UpdateChams):add_color({Color = Color3.fromRGB(141, 115, 245)}, false, UpdateChams)
  332. chams.element("Toggle", "friendlies", nil, UpdateChams):add_color({Color = Color3.fromRGB(102, 255, 102)}, false, UpdateChams)
  333. chams.element("Toggle", "through walls", nil, UpdateChams):add_color({Color = Color3.fromRGB(170, 170, 170)}, false, UpdateChams)
  334.  
  335. local drawings = players.new_sector("drawings", "Right")
  336. drawings.element("Dropdown", "font", {options = {"Plex", "Monospace", "System", "UI"}})
  337. drawings.element("Dropdown", "surround", {options = {"none", "[]", "--", "<>"}})
  338.  
  339. local world = tabs[3].new_section("world")
  340.  
  341. local self = world.new_sector("self")
  342. self.element("Toggle", "third person"):add_keybind()
  343. self.element("Slider", "distance", {default = {min = 1, max = 20, default = 15}})
  344. self.element("Toggle", "fov changer"):add_keybind()
  345. self.element("Slider", "field of view", {default = {min = 30, max = 120, default = 80}})
  346. end
  347. do
  348. local misc = tabs[4].new_section("misc")
  349.  
  350. local character = misc.new_sector("character")
  351. character.element("Toggle", "walkspeed"):add_keybind()
  352. character.element("Slider", "speed", {default = {min = 20, max = 200, default = 50}})
  353. character.element("Toggle", "jumppower"):add_keybind()
  354. character.element("Slider", "power", {default = {min = 50, max = 200, default = 50}})
  355. character.element("Slider", "height", {default = {min = 7, max = 50, default = 15}})
  356. character.element("Toggle", "noclip"):add_keybind()
  357.  
  358. local NoclipLoop = RunService.Stepped:Connect(function()
  359. if not LocalPlayer.Character then return end
  360. if not menu.values[4].misc.character.noclip.Toggle and not menu.values[4].misc.character["$noclip"].Toggle then return end
  361.  
  362. for _,part in pairs (LocalPlayer.Character:GetDescendants()) do
  363. if part:IsA("BasePart") and part.CanCollide == true then
  364. part.CanCollide = false
  365. end
  366. end
  367. end)
  368. end
  369. end
  370.  
  371. function ApplyChams(Player)
  372. if Player.Character == nil then return end
  373.  
  374. local BodyParts =
  375. {
  376. "Torso", "UpperTorso", "LowerTorso",
  377. "Left Arm", "LeftUpperArm","LeftLowerArm", "LeftHand",
  378. "Right Arm", "RightUpperArm", "RightLowerArm", "RightHand",
  379. "Left Leg", "LeftUpperLeg", "LeftLowerLeg", "LeftFoot",
  380. "Right Leg", "RightUpperLeg", "RightLowerLeg", "RightFoot"
  381. }
  382.  
  383. local Enabled, Color
  384. if Player.Team ~= LocalPlayer.Team then
  385. Enabled = menu.values[3].players.chams["enemies"].Toggle
  386. Color = menu.values[3].players.chams["$enemies"].Color
  387. else
  388. Enabled = menu.values[3].players.chams["friendlies"].Toggle
  389. Color = menu.values[3].players.chams["$friendlies"].Color
  390. end
  391. local Enabled2, Color2 = menu.values[3].players.chams["through walls"].Toggle, menu.values[3].players.chams["$through walls"].Color
  392.  
  393. local function ApplyHandle(Part, Handle)
  394. local Inline, __Outline = Part:FindFirstChild("Inline"), Part:FindFirstChild("_Outline")
  395. if not Inline then
  396. Inline = Create(Handle, {
  397. Name = "Inline",
  398. Color3 = Color2,
  399. Transparency = 0.75,
  400. ZIndex = 2,
  401. AlwaysOnTop = true,
  402. AdornCullingMode = "Never",
  403. Visible = Enabled and Enabled2 or false,
  404. Adornee = Part,
  405. })
  406. if Handle == "BoxHandleAdornment" then
  407. Inline.Size = Part.Size + Vector3.new(0.05, 0.05, 0.05)
  408. else
  409. Inline.Radius = Part.Size.X / 2 + 0.15
  410. Inline.Height = Part.Size.Y + 0.3
  411. Inline.CFrame = CFrame.new(Vector3.new(), Vector3.new(0,1,0))
  412. end
  413. end
  414. if not _Outline then
  415. _Outline = Create(Handle, {
  416. Name = "_Outline",
  417. Color3 = Color,
  418. Transparency = 0.55,
  419. Transparency = 0.55,
  420. ZIndex = 2,
  421. AlwaysOnTop = false,
  422. AdornCullingMode = "Never",
  423. Visible = Enabled,
  424. Adornee = Part,
  425. })
  426. if Handle == "BoxHandleAdornment" then
  427. _Outline.Size = Part.Size + Vector3.new(0.1, 0.1, 0.1)
  428. else
  429. _Outline.Radius = Part.Size.X / 2 + 0.2
  430. _Outline.Height = Part.Size.Y + 0.35
  431. _Outline.CFrame = CFrame.new(Vector3.new(), Vector3.new(0,1,0))
  432. end
  433. end
  434. Inline.Color3 = Color2
  435. Inline.Visible = Enabled and Enabled2 or false
  436. _Outline.Color3 = Color
  437. _Outline.Visible = Enabled
  438.  
  439. Inline.Parent = Part
  440. _Outline.Parent = Part
  441.  
  442. return Inline, _Outline
  443. end
  444.  
  445. for _,Part in next, Player.Character:GetChildren() do
  446. if Part.Name == "Head" and not Part:IsA("LocalScript") and not Part:IsA("Accessory") then
  447. ApplyHandle(Part, "CylinderHandleAdornment")
  448. elseif table.find(BodyParts, Part.Name) and not Part:IsA("LocalScript") and not Part:IsA("Accessory") then
  449. ApplyHandle(Part, "BoxHandleAdornment")
  450. end
  451. end
  452.  
  453. Player.Character.ChildAdded:Connect(function(Child)
  454. if Child.Name == "Head" and not Child:IsA("LocalScript") and not Child:IsA("Accessory") then
  455. ApplyHandle(Child, "CylinderHandleAdornment")
  456. elseif table.find(BodyParts, Child.Name) and not Child:IsA("LocalScript") and not Child:IsA("Accessory") then
  457. ApplyHandle(Child, "BoxHandleAdornment")
  458. end
  459. end)
  460. end
  461.  
  462. Players.PlayerAdded:Connect(function(Player)
  463. Player.CharacterAdded:Connect(function()
  464. RunService.RenderStepped:Wait()
  465. ApplyChams(Player)
  466. end)
  467.  
  468. Player:GetPropertyChangedSignal("Team"):Connect(function()
  469. ApplyChams(Player)
  470. end)
  471. end)
  472. for _,Player in next, Players:GetPlayers() do
  473. if Player ~= LocalPlayer then
  474. ApplyChams(Player)
  475.  
  476. Player.CharacterAdded:Connect(function()
  477. RunService.RenderStepped:Wait()
  478. ApplyChams(Player)
  479. end)
  480.  
  481. Player:GetPropertyChangedSignal("Team"):Connect(function()
  482. ApplyChams(Player)
  483. end)
  484. end
  485. end
  486. LocalPlayer:GetPropertyChangedSignal("Team"):Connect(function()
  487. for _,Player in next, Players:GetPlayers() do
  488. ApplyChams(Player)
  489. end
  490. end)
  491.  
  492. local TriggerbotDebounce = false
  493. local TriggerbotLoop = RunService.RenderStepped:Connect(function()
  494. if not menu.values[2].aimbot.triggerbot.enabled.Toggle or not menu.values[2].aimbot.triggerbot["$enabled"].Active then return end
  495. if menu.open then return end
  496. if TriggerbotDebounce then return end
  497.  
  498. local SelfCharacter = LocalPlayer.Character
  499. local SelfRootPart, SelfHumanoid = SelfCharacter and SelfCharacter:FindFirstChild("HumanoidRootPart"), SelfCharacter and SelfCharacter:FindFirstChildOfClass("Humanoid")
  500. if not SelfCharacter or not SelfRootPart or not SelfHumanoid then return end
  501.  
  502. local Target = Mouse.Target
  503. local Player
  504. if Target and Target.Parent and Players:GetPlayerFromCharacter(Target.Parent) then
  505. Player = Players:GetPlayerFromCharacter(Target.Parent)
  506. end
  507. if not Target or not Player then return end
  508. if Player == LocalPlayer then return end
  509.  
  510. local Character = Player.Character
  511. local RootPart, Humanoid = Character and Character:FindFirstChild("HumanoidRootPart"), Character and Character:FindFirstChildOfClass("Humanoid")
  512. if not Character or not RootPart or not Humanoid then return end
  513. if not Character:FindFirstChild("Head") then return end
  514. if menu.values[5].menu["player check"]["forcefield check"].Toggle and Character:FindFirstChildOfClass("ForceField") then return end
  515. if not menu.values[5].menu["player check"]["free for all"].Toggle and Player.Team == LocalPlayer.Team then return end
  516. TriggerbotDebounce = true
  517. task.spawn(function()
  518. if menu.values[2].aimbot.triggerbot["reaction time (ms)"].Slider/1000 > 1/60 then
  519. wait(menu.values[2].aimbot.triggerbot["reaction time (ms)"].Slider/1000)
  520. end
  521. mouse1press()
  522. repeat
  523. RunService.RenderStepped:Wait()
  524. until not Mouse.Target or not Mouse.Target.Parent or Players:GetPlayerFromCharacter(Mouse.Target.Parent) ~= Player or Players:GetPlayerFromCharacter(Mouse.Target.Parent) == LocalPlayer
  525. mouse1release()
  526. TriggerbotDebounce = false
  527. end)
  528. end)
  529.  
  530. local ValidTargets = {}
  531. local AimbotLoop = RunService.RenderStepped:Connect(function()
  532. ValidTargets = {}
  533.  
  534. if menu.values[2].aimbot.assist.enabled.Toggle or menu.values[2].aimbot["silent aim"].enabled.Toggle then else return end
  535. local SelfCharacter = LocalPlayer.Character
  536. local SelfRootPart, SelfHumanoid = SelfCharacter and SelfCharacter:FindFirstChild("HumanoidRootPart"), SelfCharacter and SelfCharacter:FindFirstChildOfClass("Humanoid")
  537. if not SelfCharacter or not SelfRootPart or not SelfHumanoid then return end
  538. if menu.open then return end
  539.  
  540. local Params = RaycastParams.new()
  541. Params.FilterType = Enum.RaycastFilterType.Blacklist
  542. Params.IgnoreWater = true
  543. Params.FilterDescendantsInstances = {Camera, SelfCharacter}
  544.  
  545. local Closest = 999999
  546.  
  547. local CameraPosition = Camera.CFrame.Position
  548. local MousePosition = Vector2.new(Mouse.X, Mouse.Y)
  549. if menu.values[2].advanced["mouse offset"].enabled.Toggle then
  550. MousePosition = MousePosition + Vector2.new(menu.values[2].advanced["mouse offset"]["x offset"].Slider, menu.values[2].advanced["mouse offset"]["y offset"].Slider)
  551. end
  552. for _,Player in pairs (Players:GetPlayers()) do
  553. local Character = Player.Character
  554. local RootPart, Humanoid = Character and Character:FindFirstChild("HumanoidRootPart"), Character and Character:FindFirstChildOfClass("Humanoid")
  555. if not Character or not RootPart or not Humanoid then continue end
  556. if not Character:FindFirstChild("Head") then continue end
  557. if menu.values[5].menu["player check"]["forcefield check"].Toggle and Character:FindFirstChildOfClass("ForceField") then continue end
  558. if not menu.values[5].menu["player check"]["free for all"].Toggle and Player.Team == LocalPlayer.Team then continue end
  559. if Player == LocalPlayer then continue end
  560.  
  561. local Head
  562. for _,Part in next, Character:GetChildren() do
  563. if not Part:IsA("LocalScript") and Part.Name == "Head" then Head = Part break end
  564. end
  565. if not Head then continue end
  566.  
  567. local DistanceFromCharacter = (Camera.CFrame.Position - RootPart.Position).Magnitude
  568. if menu.values[2].aimbot.targeting["max distance"].Slider < DistanceFromCharacter then continue end
  569.  
  570. local Pos, OnScreen = Camera:WorldToViewportPoint(RootPart.Position)
  571. if not OnScreen then continue end
  572. local Magnitude = (Vector2.new(Pos.X, Pos.Y) - MousePosition).Magnitude
  573. if not (Magnitude < menu.values[2].aimbot.fov["fov size"].Slider) then continue end
  574.  
  575. local Hitbox = menu.values[2].aimbot.assist.hitbox.Dropdown == "head" and Head or RootPart
  576. if menu.values[2].aimbot.assist.hitbox.Dropdown == "closest" then
  577. local HeadPos = Camera:WorldToViewportPoint(Head.Position)
  578. local TorsoPos = Camera:WorldToViewportPoint(RootPart.Position)
  579.  
  580. local HeadDistance = (Vector2.new(HeadPos.X, HeadPos.Y) - MousePosition).Magnitude
  581. local TorsoDistance = (Vector2.new(TorsoPos.X, TorsoPos.Y) - MousePosition).Magnitude
  582.  
  583. Hitbox = HeadDistance < TorsoDistance and Head or RootPart
  584. end
  585.  
  586. if menu.values[2].aimbot.targeting["visible check"].Toggle then
  587. local Direction = Hitbox.Position - CameraPosition
  588. local Result = workspace:Raycast(CameraPosition, Direction.Unit * Direction.Magnitude, Params)
  589.  
  590. if not Result then continue end
  591. local Hit, Pos = Result.Instance, Result.Position
  592.  
  593. if not Hit:FindFirstAncestor(Player.Name) then continue end
  594. table.insert(ValidTargets, {Player, Hitbox, Magnitude, DistanceFromCharacter, Humanoid.Health})
  595. else
  596. table.insert(ValidTargets, {Player, Hitbox, Magnitude, DistanceFromCharacter, Humanoid.Health})
  597. end
  598. end
  599.  
  600. if menu.values[2].aimbot.targeting.prioritize.Dropdown == "crosshair" then
  601. table.sort(ValidTargets, function(a, b) return a[3] < b[3] end)
  602. elseif menu.values[2].aimbot.targeting.prioritize.Dropdown == "distance" then
  603. table.sort(ValidTargets, function(a, b) return a[4] < b[4] end)
  604. elseif menu.values[2].aimbot.targeting.prioritize.Dropdown == "lowest hp" then
  605. table.sort(ValidTargets, function(a, b) return a[5] < b[5] end)
  606. end
  607.  
  608. if menu.values[2].aimbot.assist.enabled.Toggle and menu.values[2].aimbot.assist["$enabled"].Active then
  609. if #ValidTargets ~= 0 then
  610. local Target = ValidTargets[1]
  611. local Hitbox = Target[2]
  612.  
  613. local Pos = Camera:WorldToScreenPoint(Hitbox.Position)
  614. local Magnitude = Vector2.new(Pos.X - Mouse.X, Pos.Y - Mouse.Y)
  615. if menu.values[2].advanced["mouse offset"].enabled.Toggle then
  616. Magnitude = Magnitude + Vector2.new(menu.values[2].advanced["mouse offset"]["x offset"].Slider, menu.values[2].advanced["mouse offset"]["y offset"].Slider)
  617. end
  618. mousemoverel(Magnitude.X/(menu.values[2].aimbot.assist.smoothing.Slider + 1), Magnitude.Y/(menu.values[2].aimbot.assist.smoothing.Slider + 1))
  619. end
  620. end
  621. end)
  622.  
  623. local RageTarget
  624. local RageLoop = RunService.RenderStepped:Connect(function()
  625. RageTarget = nil
  626.  
  627. local function GetDeg(pos1, pos2)
  628. local start = pos1.LookVector
  629. local vector = CFrame.new(pos1.Position, pos2).LookVector
  630. local angle = math.acos(start:Dot(vector))
  631. local deg = math.deg(angle)
  632. return deg
  633. end
  634.  
  635. local SelfCharacter = LocalPlayer.Character
  636. local SelfRootPart, SelfHumanoid = SelfCharacter and SelfCharacter:FindFirstChild("HumanoidRootPart"), SelfCharacter and SelfCharacter:FindFirstChildOfClass("Humanoid")
  637. if not SelfCharacter or not SelfRootPart or not SelfHumanoid then return end
  638. if not menu.values[1].aimbot.main.enabled.Toggle or not menu.values[1].aimbot.main["$enabled"].Active then return end
  639. if menu.open then return end
  640.  
  641. if menu.values[1].aimbot.main["automatic fire"].Toggle then
  642. mouse1release()
  643. end
  644.  
  645. local Params = RaycastParams.new()
  646. Params.FilterType = Enum.RaycastFilterType.Blacklist
  647. Params.IgnoreWater = true
  648. Params.FilterDescendantsInstances = {Camera, SelfCharacter}
  649.  
  650. for _,Player in pairs (Players:GetPlayers()) do
  651. local Character = Player.Character
  652. local RootPart, Humanoid = Character and Character:FindFirstChild("HumanoidRootPart"), Character and Character:FindFirstChildOfClass("Humanoid")
  653. if not Character or not RootPart or not Humanoid then continue end
  654. if not Character:FindFirstChild("Head") then continue end
  655. if menu.values[5].menu["player check"]["forcefield check"].Toggle and Character:FindFirstChildOfClass("ForceField") then continue end
  656. if not menu.values[5].menu["player check"]["free for all"].Toggle and Player.Team == LocalPlayer.Team then continue end
  657. if Humanoid.Health == 0 then continue end
  658. if Player == LocalPlayer then continue end
  659.  
  660. local Head
  661. for _,Part in next, Character:GetChildren() do
  662. if not Part:IsA("LocalScript") and Part.Name == "Head" then Head = Part break end
  663. end
  664. if not Head then continue end
  665. local Hitbox
  666. if menu.values[1].aimbot.main.hitbox.Dropdown == "head" then
  667. for _,Part in next, Character:GetChildren() do
  668. if not Part:IsA("LocalScript") and string.lower(Part.Name) == menu.values[1].aimbot.main.hitbox.Dropdown then
  669. Hitbox = Part
  670. break
  671. end
  672. end
  673. else
  674. Hitbox = Character:FindFirstChild("HumanoidRootPart")
  675. end
  676. if not Hitbox then continue end
  677.  
  678. local Origin = menu.values[1].aimbot.main.origin.Dropdown == "camera" and Camera.CFrame.Position or SelfRootPart.Position + Vector3.new(0, 1.5, 0)
  679. local Direction = Hitbox.Position - Origin
  680. local Result = workspace:Raycast(Origin, Direction.Unit * Direction.Magnitude, Params)
  681.  
  682. if not Result then continue end
  683. local Hit, Pos = Result.Instance, Result.Position
  684.  
  685. if not Hit:FindFirstAncestor(Player.Name) then continue end
  686. RageTarget = {Player, Head}
  687.  
  688. if menu.values[1].aimbot.main["automatic fire"].Toggle then
  689. mouse1press()
  690. end
  691.  
  692. break
  693. end
  694. end)
  695.  
  696. local OriginalWalkspeed = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") and LocalPlayer.Character:FindFirstChildOfClass("Humanoid").WalkSpeed or 16
  697. local OriginalJumpPower = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") and LocalPlayer.Character:FindFirstChildOfClass("Humanoid").JumpPower or 50
  698. local OriginalJumpHeight = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") and LocalPlayer.Character:FindFirstChildOfClass("Humanoid").JumpHeight or 7.2
  699. local OriginalAutoRotate = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") and LocalPlayer.Character:FindFirstChildOfClass("Humanoid").AutoRotate or true
  700. local AntiaimAngle = CFrame.new()
  701. local Jitter = false
  702. local FOV = Camera.FieldOfView
  703. RunService.RenderStepped:Connect(function()
  704. local SelfCharacter = LocalPlayer.Character
  705. local SelfRootPart, SelfHumanoid = SelfCharacter and SelfCharacter:FindFirstChild("HumanoidRootPart"), SelfCharacter and SelfCharacter:FindFirstChildOfClass("Humanoid")
  706. if not SelfCharacter or not SelfRootPart or not SelfHumanoid then return end
  707.  
  708. if menu.values[4].misc.character.walkspeed.Toggle and menu.values[4].misc.character["$walkspeed"].Active then
  709. SelfHumanoid.WalkSpeed = menu.values[4].misc.character.speed.Slider
  710. else
  711. SelfHumanoid.WalkSpeed = OriginalWalkspeed
  712. end
  713.  
  714. if menu.values[4].misc.character.jumppower.Toggle and menu.values[4].misc.character["$jumppower"].Active then
  715. SelfHumanoid.JumpPower = menu.values[4].misc.character.power.Slider
  716. SelfHumanoid.JumpHeight = menu.values[4].misc.character.height.Slider
  717. else
  718. SelfHumanoid.JumpPower = OriginalJumpPower
  719. SelfHumanoid.JumpHeight = OriginalJumpHeight
  720. end
  721. if menu.values[1].antiaim.direction.enabled.Toggle and menu.values[1].antiaim.direction["$enabled"].Active then
  722. SelfHumanoid.AutoRotate = false
  723.  
  724. local Angle do
  725. Angle = -math.atan2(Camera.CFrame.LookVector.Z, Camera.CFrame.LookVector.X) + math.rad(-90)
  726. if menu.values[1].antiaim.direction["yaw base"].Dropdown == "random" then
  727. Angle = -math.atan2(Camera.CFrame.LookVector.Z, Camera.CFrame.LookVector.X) + math.rad(math.random(0, 360))
  728. elseif menu.values[1].antiaim.direction["yaw base"].Dropdown == "spin" then
  729. Angle = -math.atan2(Camera.CFrame.LookVector.Z, Camera.CFrame.LookVector.X) + tick() * 10 % 360
  730. end
  731. end
  732.  
  733. local Offset = math.rad(menu.values[1].antiaim.direction["yaw offset"].Slider)
  734. Jitter = not Jitter
  735. if Jitter then
  736. if menu.values[1].antiaim.direction["yaw modifier"].Dropdown == "jitter" then
  737. Offset = math.rad(menu.values[1].antiaim.direction["modifier offset"].Slider)
  738. elseif menu.values[1].antiaim.direction["yaw modifier"].Dropdown == "offset jitter" then
  739. Offset = Offset + math.rad(menu.values[1].antiaim.direction["modifier offset"].Slider)
  740. end
  741. end
  742. local NewAngle = CFrame.new(SelfRootPart.Position) * CFrame.Angles(0, Angle + Offset, 0)
  743. local function ToYRotation(_CFrame)
  744. local X, Y, Z = _CFrame:ToOrientation()
  745. return CFrame.new(_CFrame.Position) * CFrame.Angles(0, Y, 0)
  746. end
  747. if menu.values[1].antiaim.direction["yaw base"].Dropdown == "targets" then
  748. local Target
  749. local Closest = 9999
  750. for _,Player in next, Players:GetPlayers() do
  751. if not Player.Character or not Player.Character:FindFirstChild("HumanoidRootPart") then continue end
  752.  
  753. local Pos, OnScreen = Camera:WorldToViewportPoint(Player.Character.HumanoidRootPart.Position)
  754. local Magnitude = (Vector2.new(Pos.X, Pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  755. if Closest > Magnitude then
  756. Target = Player.Character.HumanoidRootPart
  757. Closest = Magnitude
  758. end
  759. end
  760. if Target ~= nil then
  761. NewAngle = CFrame.new(SelfRootPart.Position, Target.Position) * CFrame.Angles(0, 0, 0)
  762. end
  763. end
  764. AntiaimAngle = Angle + Offset
  765. SelfRootPart.CFrame = ToYRotation(NewAngle)
  766. else
  767. SelfHumanoid.AutoRotate = OriginalAutoRotate
  768. end
  769. if menu.values[3].world.self["fov changer"].Toggle and menu.values[3].world.self["$fov changer"].Active then
  770. Camera.FieldOfView = menu.values[3].world.self["field of view"].Slider
  771. else
  772. Camera.FieldOfView = FOV
  773. end
  774. end)
  775.  
  776. local OldNewIndex; OldNewIndex = hookmetamethod(game, "__newindex", function(self, key, value)
  777. local SelfName = tostring(self)
  778.  
  779. if self == Camera and key == "CFrame" then
  780. if menu.values[3].world.self["third person"].Toggle and menu.values[3].world.self["$third person"].Active then
  781. value = value + Camera.CFrame.LookVector * -menu.values[3].world.self.distance.Slider
  782. end
  783. end
  784. if not checkcaller() then
  785. if key == "FieldOfView" then
  786. FOV = value
  787. if menu.values[3].world.self["fov changer"].Toggle and menu.values[3].world.self["$fov changer"].Active then
  788. value = menu.values[3].world.self["field of view"].Slider
  789. end
  790. end
  791. if key == "WalkSpeed" then
  792. OriginalWalkspeed = value
  793. if menu.values[4].misc.character.walkspeed.Toggle and menu.values[4].misc.character["$walkspeed"].Active then
  794. value = menu.values[4].misc.character.speed.Slider
  795. end
  796. end
  797. if key == "JumpPower" then
  798. OriginalJumpPower = value
  799. if menu.values[4].misc.character.jumppower.Toggle and menu.values[4].misc.character["$jumppower"].Active then
  800. value = menu.values[4].misc.character.power.Slider
  801. end
  802. end
  803. if key == "JumpHeight" then
  804. OriginalJumpHeight = value
  805. if menu.values[4].misc.character.jumppower.Toggle and menu.values[4].misc.character["$jumppower"].Active then
  806. value = menu.values[4].misc.character.height.Slider
  807. end
  808. end
  809. if key == "AutoRotate" then
  810. OriginalAutoRotate = value
  811. if menu.values[1].antiaim.direction.enabled.Toggle and menu.values[1].antiaim.direction["$enabled"].Active then
  812. value = false
  813. end
  814. end
  815. if SelfName == "HumanoidRootPart" and key == "CFrame" then
  816. if menu.values[1].antiaim.direction.enabled.Toggle and menu.values[1].antiaim.direction["$enabled"].Active and menu.values[1].antiaim.direction["force angles"].Toggle then
  817. value = CFrame.new(value.Position) * CFrame.Angles(0, AntiaimAngle, 0)
  818. end
  819. end
  820.  
  821. return OldNewIndex(self, key, value)
  822. end
  823.  
  824. return OldNewIndex(self, key, value)
  825. end)
  826. local _Humanoid do
  827. RunService.RenderStepped:Connect(function()
  828. _Humanoid = nil
  829. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then
  830. _Humanoid = LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
  831. end
  832. end)
  833. end
  834. local OldIndex; OldIndex = hookmetamethod(game, "__index", function(self, key)
  835. local SelfName = tostring(self)
  836.  
  837. if not checkcaller() then
  838. if _Humanoid and self == _Humanoid then
  839. if key == "WalkSpeed" then
  840. return OriginalWalkspeed
  841. end
  842. if key == "JumpPower" then
  843. return OriginalJumpPower
  844. end
  845. if key == "JumpHeight" then
  846. return OriginalJumpHeight
  847. end
  848. end
  849. if key == "FieldOfView" then
  850. if menu.values[3].world.self["fov changer"].Toggle and menu.values[3].world.self["$fov changer"].Active then
  851. return menu.values[3].world.self["field of view"].Slider
  852. end
  853. end
  854.  
  855. if self == Mouse then
  856. if table.find(menu.values[5].menu.methods["mouse types"].Combo, string.lower(key)) then
  857. local LegitTarget = ValidTargets[1] and ValidTargets[1][2]
  858. local RageTarget = RageTarget and RageTarget[2]
  859. if RageTarget then
  860. if key == "Target" then
  861. return RageTarget
  862. elseif key == "Hit" then
  863. return RageTarget.CFrame
  864. end
  865. elseif LegitTarget then
  866. if not menu.values[2].aimbot["silent aim"].enabled.Toggle or not menu.values[2].aimbot["silent aim"]["$enabled"].Active then return OldIndex(self, key) end
  867. if not (math.random(1, 100) <= menu.values[2].aimbot["silent aim"]["hitchance"].Slider) then return OldIndex(self, key) end
  868. if key == "Target" then
  869. return LegitTarget
  870. elseif key == "Hit" then
  871. return LegitTarget.CFrame
  872. end
  873. end
  874. end
  875. end
  876. end
  877.  
  878. return OldIndex(self, key)
  879. end)
  880. local OldNamecall; OldNamecall = hookmetamethod(game, "__namecall", function(self, ...)
  881. local args = {...}
  882. local method = tostring(getnamecallmethod())
  883.  
  884. if checkcaller() then
  885. return OldNamecall(self, unpack(args))
  886. end
  887.  
  888. if string.lower(method) == menu.values[5].menu.methods["ray method"].Dropdown then
  889. local Ignore
  890. if method == "Raycast" then
  891. Ignore = args[3].FilterDescendantsInstances
  892. elseif method == "FindPartOnRayWithIgnoreList" then
  893. Ignore = args[2]
  894. end
  895. if Ignore then
  896. if table.find(menu.values[5].menu.methods["must include"].Combo, "camera") and not table.find(Ignore, Camera) then
  897. return OldNamecall(self, ...)
  898. end
  899. if table.find(menu.values[5].menu.methods["must include"].Combo, "character") and not table.find(Ignore, LocalPlayer.Character) then
  900. return OldNamecall(self, ...)
  901. end
  902. end
  903.  
  904. local LegitTarget = ValidTargets[1] and ValidTargets[1][2]
  905. local RageTarget = RageTarget and RageTarget[2]
  906. if RageTarget then
  907. if method == "Raycast" then
  908. args[2] = (RageTarget.Position - args[1]).unit * 500
  909. elseif method == "FindPartOnRayWithIgnoreList" or method == "FindPartOnRay" then
  910. args[1] = Ray.new(Camera.CFrame.Position, (RageTarget.Position - Camera.CFrame.Position).unit * 500)
  911. end
  912. elseif LegitTarget then
  913. if not menu.values[2].aimbot["silent aim"].enabled.Toggle or not menu.values[2].aimbot["silent aim"]["$enabled"].Active then return OldNamecall(self, ...) end
  914. if not (math.random(1, 100) <= menu.values[2].aimbot["silent aim"]["hitchance"].Slider) then return OldNamecall(self, ...) end
  915. if method == "Raycast" then
  916. args[2] = (LegitTarget.Position - args[1]).unit * 500
  917. elseif method == "FindPartOnRayWithIgnoreList" or method == "FindPartOnRay" then
  918. args[1] = Ray.new(Camera.CFrame.Position, (LegitTarget.Position - Camera.CFrame.Position).unit * 500)
  919. end
  920. end
  921. end
  922.  
  923. return OldNamecall(self, unpack(args))
  924. end)
  925.  
  926. local PlayerDrawings = {}
  927. local Utility = {}
  928.  
  929. Utility.Settings = {
  930. Line = {
  931. Thickness = 1,
  932. Color = Color3.fromRGB(0, 255, 0)
  933. },
  934. Text = {
  935. Size = 13,
  936. Center = true,
  937. Outline = true,
  938. Font = Drawing.Fonts.Plex,
  939. Color = Color3.fromRGB(255, 255, 255)
  940. },
  941. Square = {
  942. Thickness = 1,
  943. Color = menu.values[3].players.enemies["$box"].Color,
  944. Filled = false,
  945. },
  946. Triangle = {
  947. Color = Color3.fromRGB(255, 255, 255),
  948. Filled = true,
  949. Visible = false,
  950. Thickness = 1,
  951. }
  952. }
  953. function Utility.New(Type, Outline, Name)
  954. local drawing = Drawing.new(Type)
  955. for i, v in pairs(Utility.Settings[Type]) do
  956. drawing[i] = v
  957. end
  958. if Outline then
  959. drawing.Color = Color3.new(0,0,0)
  960. drawing.Thickness = 3
  961. end
  962. return drawing
  963. end
  964. function Utility.Add(Player)
  965. if not PlayerDrawings[Player] then
  966. PlayerDrawings[Player] = {
  967. Offscreen = Utility.New("Triangle", nil, "Offscreen"),
  968. Name = Utility.New("Text", nil, "Name"),
  969. Tool = Utility.New("Text", nil, "Tool"),
  970. Distance = Utility.New("Text", nil, "Distance"),
  971. BoxOutline = Utility.New("Square", true, "BoxOutline"),
  972. Box = Utility.New("Square", nil, "Box"),
  973. HealthOutline = Utility.New("Line", true, "HealthOutline"),
  974. Health = Utility.New("Line", nil, "Health")
  975. }
  976. end
  977. end
  978.  
  979. for _,Player in pairs(Players:GetPlayers()) do
  980. if Player ~= LocalPlayer then
  981. Utility.Add(Player)
  982. end
  983. end
  984. Players.PlayerAdded:Connect(Utility.Add)
  985. Players.PlayerRemoving:Connect(function(Player)
  986. if PlayerDrawings[Player] then
  987. for i,v in pairs(PlayerDrawings[Player]) do
  988. if v then
  989. v:Remove()
  990. end
  991. end
  992.  
  993. PlayerDrawings[Player] = nil
  994. end
  995. end)
  996.  
  997. local ESPLoop = game:GetService("RunService").RenderStepped:Connect(function()
  998. for _,Player in pairs (Players:GetPlayers()) do
  999. local PlayerDrawing = PlayerDrawings[Player]
  1000. if not PlayerDrawing then continue end
  1001.  
  1002. for _,Drawing in pairs (PlayerDrawing) do
  1003. Drawing.Visible = false
  1004. end
  1005.  
  1006. if not menu.values[3].players.esp.enabled.Toggle or not menu.values[3].players.esp["$enabled"].Active then continue end
  1007.  
  1008. local Character = Player.Character
  1009. local RootPart, Humanoid = Character and Character:FindFirstChild("HumanoidRootPart"), Character and Character:FindFirstChildOfClass("Humanoid")
  1010. if not Character or not RootPart or not Humanoid then continue end
  1011.  
  1012. local DistanceFromCharacter = (Camera.CFrame.Position - RootPart.Position).Magnitude
  1013. if menu.values[3].players.esp["max distance"].Slider < DistanceFromCharacter then continue end
  1014.  
  1015. local Pos, OnScreen = Camera:WorldToViewportPoint(RootPart.Position)
  1016. if not OnScreen then
  1017. local VisualTable = menu.values[3].players["out of fov"]
  1018. if Player.Team ~= LocalPlayer.Team and not VisualTable.enemies.Toggle then continue end
  1019. if Player.Team == LocalPlayer.Team and not VisualTable.teammates.Toggle then continue end
  1020.  
  1021. local RootPos = RootPart.Position
  1022. local CameraVector = Camera.CFrame.Position
  1023. local LookVector = Camera.CFrame.LookVector
  1024.  
  1025. local Dot = LookVector:Dot(RootPart.Position - Camera.CFrame.Position)
  1026. if Dot <= 0 then
  1027. RootPos = (CameraVector + ((RootPos - CameraVector) - ((LookVector * Dot) * 1.01)))
  1028. end
  1029.  
  1030. local ScreenPos, OnScreen = Camera:WorldToScreenPoint(RootPos)
  1031. if not OnScreen then
  1032. local Drawing = PlayerDrawing.Offscreen
  1033. local FOV = 800 - menu.values[3].players["out of fov"].offset.Slider
  1034. local Size = menu.values[3].players["out of fov"].size.Slider
  1035.  
  1036. local Center = (Camera.ViewportSize / 2)
  1037. local Direction = (Vector2.new(ScreenPos.X, ScreenPos.Y) - Center).Unit
  1038. local Radian = math.atan2(Direction.X, Direction.Y)
  1039. local Angle = (((math.pi * 2) / FOV) * Radian)
  1040. local ClampedPosition = (Center + (Direction * math.min(math.abs(((Center.Y - FOV) / math.sin(Angle)) * FOV), math.abs((Center.X - FOV) / (math.cos(Angle)) / 2))))
  1041. local Point = Vector2.new(math.floor(ClampedPosition.X - (Size / 2)), math.floor((ClampedPosition.Y - (Size / 2) - 15)))
  1042.  
  1043. local function Rotate(point, center, angle)
  1044. angle = math.rad(angle)
  1045. local rotatedX = math.cos(angle) * (point.X - center.X) - math.sin(angle) * (point.Y - center.Y) + center.X
  1046. local rotatedY = math.sin(angle) * (point.X - center.X) + math.cos(angle) * (point.Y - center.Y) + center.Y
  1047.  
  1048. return Vector2.new(math.floor(rotatedX), math.floor(rotatedY))
  1049. end
  1050.  
  1051. local Rotation = math.floor(-math.deg(Radian)) - 47
  1052. Drawing.PointA = Rotate(Point + Vector2.new(Size, Size), Point, Rotation)
  1053. Drawing.PointB = Rotate(Point + Vector2.new(-Size, -Size), Point, Rotation)
  1054. Drawing.PointC = Rotate(Point + Vector2.new(-Size, Size), Point, Rotation)
  1055. Drawing.Color = Player.Team ~= LocalPlayer.Team and VisualTable["$enemies"].Color or VisualTable["$teammates"].Color
  1056.  
  1057. Drawing.Filled = not table.find(menu.values[3].players["out of fov"].settings.Combo, "outline") and true or false
  1058. if table.find(menu.values[3].players["out of fov"].settings.Combo, "blinking") then
  1059. Drawing.Transparency = (math.sin(tick() * 5) + 1) / 2
  1060. else
  1061. Drawing.Transparency = 1
  1062. end
  1063.  
  1064. Drawing.Visible = true
  1065. end
  1066. else
  1067. local VisualTable = Player.Team ~= LocalPlayer.Team and menu.values[3].players.enemies or menu.values[3].players.friendlies
  1068.  
  1069. local Size = (Camera:WorldToViewportPoint(RootPart.Position - Vector3.new(0, 3, 0)).Y - Camera:WorldToViewportPoint(RootPart.Position + Vector3.new(0, 2.6, 0)).Y) / 2
  1070. local BoxSize = Vector2.new(math.floor(Size * 1.5), math.floor(Size * 1.9))
  1071. local BoxPos = Vector2.new(math.floor(Pos.X - Size * 1.5 / 2), math.floor(Pos.Y - Size * 1.6 / 2))
  1072.  
  1073. local Name = PlayerDrawing.Name
  1074. local Tool = PlayerDrawing.Tool
  1075. local Distance = PlayerDrawing.Distance
  1076. local Box = PlayerDrawing.Box
  1077. local BoxOutline = PlayerDrawing.BoxOutline
  1078. local Health = PlayerDrawing.Health
  1079. local HealthOutline = PlayerDrawing.HealthOutline
  1080.  
  1081. if VisualTable.box.Toggle then
  1082. Box.Size = BoxSize
  1083. Box.Position = BoxPos
  1084. Box.Visible = true
  1085. Box.Color = VisualTable["$box"].Color
  1086. BoxOutline.Size = BoxSize
  1087. BoxOutline.Position = BoxPos
  1088. BoxOutline.Visible = true
  1089. end
  1090.  
  1091. if VisualTable.health.Toggle then
  1092. Health.From = Vector2.new((BoxPos.X - 5), BoxPos.Y + BoxSize.Y)
  1093. Health.To = Vector2.new(Health.From.X, Health.From.Y - (Humanoid.Health / Humanoid.MaxHealth) * BoxSize.Y)
  1094. Health.Color = VisualTable["$health"].Color
  1095. Health.Visible = true
  1096.  
  1097. HealthOutline.From = Vector2.new(Health.From.X, BoxPos.Y + BoxSize.Y + 1)
  1098. HealthOutline.To = Vector2.new(Health.From.X, (Health.From.Y - 1 * BoxSize.Y) -1)
  1099. HealthOutline.Visible = true
  1100. end
  1101.  
  1102. local function SurroundString(String, Add)
  1103. local Left = ""
  1104. local Right = ""
  1105.  
  1106. local Remove = false
  1107. if Add == "[]" then
  1108. String = string.gsub(String, "%[", "")
  1109. String = string.gsub(String, "%[", "")
  1110.  
  1111. Left = "["
  1112. Right = "]"
  1113. elseif Add == "--" then
  1114. Left = "-"
  1115. Right = "-"
  1116. Remove = true
  1117. elseif Add == "<>" then
  1118. Left = "<"
  1119. Right = ">"
  1120. Remove = true
  1121. end
  1122. if Remove then
  1123. String = string.gsub(String, Left, "")
  1124. String = string.gsub(String, Right, "")
  1125. end
  1126.  
  1127. return Left..String..Right
  1128. end
  1129.  
  1130. if VisualTable.name.Toggle then
  1131. Name.Text = SurroundString(Player.Name, menu.values[3].players.drawings.surround.Dropdown)
  1132. Name.Position = Vector2.new(BoxSize.X / 2 + BoxPos.X, BoxPos.Y - 16)
  1133. Name.Color = VisualTable["$name"].Color
  1134. Name.Font = Drawing.Fonts[menu.values[3].players.drawings.font.Dropdown]
  1135. Name.Visible = true
  1136. end
  1137.  
  1138. if VisualTable.indicators.Toggle then
  1139. local BottomOffset = BoxSize.Y + BoxPos.Y + 1
  1140. if table.find(VisualTable.types.Combo, "tool") then
  1141. local Equipped = Player.Character:FindFirstChildOfClass("Tool") and Player.Character:FindFirstChildOfClass("Tool").Name or "None"
  1142. Equipped = SurroundString(Equipped, menu.values[3].players.drawings.surround.Dropdown)
  1143. Tool.Text = Equipped
  1144. Tool.Position = Vector2.new(BoxSize.X/2 + BoxPos.X, BottomOffset)
  1145. Tool.Color = VisualTable["$indicators"].Color
  1146. Tool.Font = Drawing.Fonts[menu.values[3].players.drawings.font.Dropdown]
  1147. Tool.Visible = true
  1148. BottomOffset = BottomOffset + 15
  1149. end
  1150. if table.find(VisualTable.types.Combo, "distance") then
  1151. Distance.Text = SurroundString(math.floor(DistanceFromCharacter).."m", menu.values[3].players.drawings.surround.Dropdown)
  1152. Distance.Position = Vector2.new(BoxSize.X/2 + BoxPos.X, BottomOffset)
  1153. Distance.Color = VisualTable["$indicators"].Color
  1154. Distance.Font = Drawing.Fonts[menu.values[3].players.drawings.font.Dropdown]
  1155. Distance.Visible = true
  1156.  
  1157. BottomOffset = BottomOffset + 15
  1158. end
  1159. end
  1160. end
  1161. end
  1162. end)
  1163.  
  1164. getgenv().text = "6ixware.ru"
  1165. loadstring(game:HttpGet"https://raw.githubusercontent.com/dawid-scripts/UI-Libs/main/gamesensewatermark.lua")()
  1166. loadstring(game:HttpGet("https://pastebin.com/raw/PwhHtJih", true))()
  1167.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement