Advertisement
robloxscript111

Assassin!

Feb 11th, 2023
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.31 KB | None | 0 0
  1. local old = getrenv().gcinfo
  2. getrenv().gcinfo = function(...)
  3. return 2500;
  4. end
  5.  
  6. (function()
  7. local real = getrenv().collectgarbage
  8.  
  9. getrenv().collectgarbage = newcclosure(function(...)
  10. if checkcaller() and tostring(getcallingscript()) == "Animator" then
  11. local func = ...;
  12. local con = debug.getconstants(func)
  13. if con[1] and con[1]:match("\n") and con[2] and con[2] == "BAC_Client" then
  14. return 2500;
  15. end
  16. end
  17. return real(...)
  18. end)
  19. end)()
  20.  
  21. local Players = game:GetService("Players");
  22. local LocalPlayer = Players.LocalPlayer;
  23. local Backpack = LocalPlayer.Backpack;
  24. local LocalCharacter = LocalPlayer.Character;
  25. local LocalRootPart = Instance;
  26. local LocalHumanoid = Instance;
  27. local UI = LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("UI");
  28. local TargetFrame = UI.Target;
  29. local TargetVisible = TargetFrame.Visible;
  30. local TargetText = TargetFrame.TargetText;
  31. local Target = TargetVisible and Players:FindFirstChild(TargetText.Text);
  32. local TargetCharacter = Instance;
  33. local TargetRootPart = Instance;
  34. _G.TPSilentAimToggle = false
  35.  
  36. local real = getrenv().gcinfo
  37.  
  38. getrenv().gcinfo = newcclosure(function(...)
  39. return 2500;
  40. end)
  41.  
  42. local gmt = getrawmetatable(game)
  43. local oldindex = gmt.__index
  44.  
  45. setreadonly(gmt, false)
  46.  
  47. gmt.__index = newcclosure(function(t, k)
  48. if type(t) == "userdata" and oldindex(t, "Name") == "HumanoidRootPart" and k == "Size" then
  49. return Vector3.new(2,2,1)
  50. end
  51. return oldindex(t, k)
  52. end)
  53.  
  54. getrenv().gcinfo = newcclosure(function(...)
  55. return 2500;
  56. end)
  57.  
  58. spawn(function()
  59. game:GetService('RunService').RenderStepped:connect(function()
  60. for i,v in pairs(game:GetService('Players'):GetPlayers()) do
  61. if v.Name ~= game.Players.LocalPlayer.Name then
  62. game.Workspace[v.Name].HumanoidRootPart.Size = SizeXCV
  63. game.Workspace[v.Name].HumanoidRootPart.Transparency = TransparencyXCV or SizeXCVs
  64. game.Workspace[v.Name].HumanoidRootPart.Color = ColourXCV
  65. game.Workspace[v.Name].HumanoidRootPart.Material = "ForceField"
  66. game.Workspace[v.Name].HumanoidRootPart.CanCollide = false
  67. wait()
  68. end
  69. end
  70. end)
  71. end)
  72.  
  73. local ScriptConnections = {}
  74.  
  75. local game=game;
  76. local workspace=workspace;
  77.  
  78. local Player = game:GetService("Players").LocalPlayer
  79. local wS = game:GetService("Workspace")
  80.  
  81. local FFC = game.FindFirstChild;
  82. local FFCWhichIsA = game.FindFirstChildWhichIsA;
  83. local FindPartOnRayWithIgnoreList = workspace.FindPartOnRayWithIgnoreList;
  84.  
  85. local Players = game:GetService("Players");
  86. local GetPlayers = Players.GetPlayers;
  87. local LocalPlayer = Players.LocalPlayer;
  88.  
  89. local UIS = game:GetService("UserInputService");
  90. local GML = UIS.GetMouseLocation;
  91.  
  92. local Camera = workspace.CurrentCamera;
  93. local WorldToViewportPoint = Camera.WorldToViewportPoint;
  94.  
  95. local Vector2New = Vector2.new;
  96. local function SpaceToVector2(Space)
  97. local Pos, IsVisible = WorldToViewportPoint(Camera, Space);
  98.  
  99. return Vector2New(Pos.X, Pos.Y), IsVisible, Pos.Z;
  100. end;
  101.  
  102. local ClosestPlayerToMouse;
  103. local ClosestPlayerToMouseDistance;
  104.  
  105. local function GetCharacter(Player)
  106. return FFC(workspace, Player.Name);
  107. end;
  108.  
  109. local VotePad = workspace.Lobby.VoteStation.pad3.Position;
  110. table.insert(ScriptConnections, game:GetService("RunService").Stepped:Connect(function()
  111. ClosestPlayerToMouseDistance = math.huge;
  112. local MouseLocation = GML(UIS);
  113. for I, Player in next, GetPlayers(Players) do
  114. if typeof(Player) == "Instance" and Player ~= LocalPlayer then
  115. local C = GetCharacter(Player);
  116. local HRP = C and FFC(C, "HumanoidRootPart");
  117.  
  118. if typeof(HRP) == "Instance" then
  119. if FFCWhichIsA(C, "ForceField") then end
  120.  
  121. local Distance = (VotePad - HRP.Position).Magnitude;
  122. if Distance > 300 then
  123. if ClosestPlayerToMouse then
  124. local V2 = SpaceToVector2(HRP.Position);
  125. local Distance = (MouseLocation - V2).Magnitude;
  126. if Distance < ClosestPlayerToMouseDistance then
  127. ClosestPlayerToMouseDistance = Distance;
  128. ClosestPlayerToMouse = Player;
  129. end;
  130. else
  131. ClosestPlayerToMouse = Player;
  132. end;
  133. end;
  134. end;
  135. end;
  136. end;
  137. end));
  138.  
  139. local lp = game.Players.LocalPlayer
  140. local Player = game:GetService("Players").LocalPlayer
  141. local Camera = game:GetService("Workspace").CurrentCamera
  142. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  143. FOV_Circle = Drawing.new("Circle")
  144. FOV_Circle.Color = Color3.fromRGB(255,255,255)
  145. FOV_Circle.Thickness = 2.5
  146. FOV_Circle.NumSides = 13
  147. FOV_Circle.Radius = 100
  148. FOV_Circle.Visible = false
  149. FOV_Circle.Filled = false
  150.  
  151. game:GetService('RunService').Stepped:connect(function()
  152. FOV_Circle.Position = Vector2.new(Mouse.X, Mouse.Y + 37)
  153. end)
  154.  
  155.  
  156.  
  157. local Core = game:GetService("CoreGui")
  158.  
  159. Core.ChildAdded:Connect(function(name)
  160. wait()
  161. local o = name.Name
  162. if name.Name == "a" then
  163. return
  164. else
  165. name.Name = "a"
  166. name.Parent = game.Workspace
  167. local ScreenGui = Instance.new("ScreenGui")
  168. local Frame = Instance.new("Frame")
  169. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  170. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  171. Frame.Parent = ScreenGui
  172. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  173. Frame.Position = UDim2.new(-100000, -100000, -100000, 0)
  174. Frame.Size = UDim2.new(0, 100, 0, 100)
  175. name.Parent = ScreenGui
  176. wait(1)
  177. name.Name = o
  178. game.Players.LocalPlayer.CharacterRemoving:Connect(function()
  179. ScreenGui.Parent = game.Workspace
  180. end)
  181. game.Players.LocalPlayer.CharacterAdded:Connect(function()
  182. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  183. end)
  184. end
  185. end)
  186.  
  187. local lib = loadstring(game:HttpGet"https://raw.githubusercontent.com/dawid-scripts/UI-Libs/main/Vape.txt")()
  188. local ESP = loadstring(game:HttpGet("https://raw.githubusercontent.com/BL4Z3PL4Y5/simpleesp/main/source"))()
  189.  
  190. local win = lib:Window("XenoWare | Assassin",Color3.fromRGB(139,0,139), Enum.KeyCode.RightControl)
  191.  
  192. local lpt = win:Tab("Local Player")
  193. local hbet = win:Tab("HBE")
  194. local mt = win:Tab("Main")
  195. local vt = win:Tab("Visuals")
  196. local mct = win:Tab("Misc")
  197.  
  198. local player = game:GetService("Players").LocalPlayer
  199. local UserInputService = game:GetService("UserInputService")
  200. local mouse = player:GetMouse()
  201.  
  202. getgenv().clicktptoggle = false
  203. lpt:Toggle("Ctrl Click TP",false, function(t)
  204. clicktptoggle = t
  205. end)
  206.  
  207. task.spawn(function()
  208. repeat wait() until mouse
  209. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  210. if input.UserInputType == Enum.UserInputType.MouseButton1 and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) and clicktptoggle then
  211. player.Character:MoveTo(Vector3.new(mouse.Hit.x, mouse.Hit.y, mouse.Hit.z))
  212. end
  213. end)
  214. end)
  215.  
  216. getgenv().infjumptoggle = false
  217. lpt:Toggle("Infinite Jump",false, function(t)
  218. infjumptoggle = t
  219. end)
  220.  
  221. task.spawn(function()
  222. game:GetService("UserInputService").JumpRequest:Connect(function()
  223. if infjumptoggle then
  224. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  225. end
  226. end)
  227. end)
  228.  
  229. getgenv().nocliptoggle = false
  230. lpt:Toggle("Noclip",false, function(t)
  231. nocliptoggle = t
  232. end)
  233.  
  234. task.spawn(function()
  235. game.RunService.Stepped:connect(function()
  236. char = game.Players.LocalPlayer.Character
  237. for _,v in pairs(char:children()) do
  238. pcall(function() if nocliptoggle == true and v.className == "Part" then v.CanCollide = false elseif v.ClassName == "Model" then
  239. v.Head.CanCollide = false end end)
  240. end
  241. game:service("RunService").Stepped:wait()
  242. end)
  243. end)
  244.  
  245. _G.WalkSpeed = false
  246.  
  247. lpt:Toggle("Custom WalkSpeed (24+ tps u back)",false, function(t)
  248. _G.WalkSpeed = t
  249. end)
  250.  
  251. local SpeedValue = 16
  252.  
  253. lpt:Slider("WalkSpeed",16,24,16, function(t)
  254. SpeedValue = t
  255. end)
  256.  
  257. task.spawn(function()
  258. game.RunService.Stepped:connect(function()
  259. if _G.WalkSpeed == true then
  260. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = SpeedValue
  261. else
  262. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  263. end
  264. end)
  265. end)
  266.  
  267. _G.JumpPower = false
  268.  
  269. lpt:Toggle("Custom JumpPower (be careful)",false, function(t)
  270. _G.JumpPower = t
  271. end)
  272.  
  273. local JumpValue = 50
  274.  
  275. lpt:Slider("JumpPower",50,100,50, function(t)
  276. JumpValue = t
  277. end)
  278.  
  279. task.spawn(function()
  280. game.RunService.Stepped:connect(function()
  281. if _G.JumpPower == true then
  282. game.Players.LocalPlayer.Character.Humanoid.JumpPower = JumpValue
  283. else
  284. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  285. end
  286. end)
  287. end)
  288.  
  289. _G.FieldOfView = false
  290.  
  291. lpt:Toggle("Custom FOV",false, function(t)
  292. _G.FieldOfView = t
  293. end)
  294.  
  295. local FOVValue = 70
  296.  
  297. lpt:Slider("FOV",70,120,70, function(t)
  298. FOVValue = t
  299. end)
  300.  
  301. task.spawn(function()
  302. game.RunService.Stepped:connect(function()
  303. if _G.FieldOfView == true then
  304. game.workspace.CurrentCamera.FieldOfView = FOVValue
  305. else
  306. game.workspace.CurrentCamera.FieldOfView = 70
  307. end
  308. end)
  309. end)
  310.  
  311. _G.Gravity = false
  312.  
  313. lpt:Toggle("Custom Gravity",false, function(t)
  314. _G.Gravity = t
  315. end)
  316.  
  317. local GravityValue = 192.6
  318.  
  319. lpt:Slider("Gravity",0,192.6,192.6, function(t)
  320. GravityValue = t
  321. end)
  322.  
  323. task.spawn(function()
  324. game.RunService.Stepped:connect(function()
  325. if _G.Gravity == true then
  326. game.workspace.Gravity = GravityValue
  327. else
  328. game.workspace.Gravity = 192.6
  329. end
  330. end)
  331. end)
  332.  
  333. _G.HipHeight = false
  334.  
  335. lpt:Toggle("Custom HipHeight",false, function(t)
  336. _G.HipHeight = t
  337. end)
  338.  
  339. local HeightValue = 0
  340.  
  341. lpt:Slider("HipHeight",0,20,0, function(t)
  342. HeightValue = t
  343. end)
  344.  
  345. task.spawn(function()
  346. game.RunService.Stepped:connect(function()
  347. if _G.HipHeight == true then
  348. game.Players.LocalPlayer.Character.Humanoid.HipHeight = HeightValue
  349. else
  350. game.Players.LocalPlayer.Character.Humanoid.HipHeight = 0
  351. end
  352. end)
  353. end)
  354.  
  355. getgenv().HBEToggle = false
  356. hbet:Toggle("Hitbox Expander",false, function(t)
  357. getgenv().HBEToggle = t
  358. end)
  359.  
  360. spawn(function()
  361. game:GetService('RunService').RenderStepped:connect(function()
  362. if getgenv().HBEToggle == true then
  363. getgenv().OFFON = true
  364. getgenv().ReSizeXCV = getgenv().SizeXCV
  365. getgenv().TransparencyXCV = 0
  366. getgenv().ColourXCV = Color3.fromRGB(255,255,255)
  367. else
  368. if getgenv().HBEToggle == false then
  369. getgenv().OFFON = false
  370. getgenv().SizeXCVs = Vector3.new(10,10,10)
  371. getgenv().TransparencyXCV = 1
  372. getgenv().ColourXCV = Color3.fromRGB(255,255,255)
  373. end
  374. end
  375. end)
  376. end)
  377.  
  378. hbet:Slider("Hitbox Size",0,75,15, function(t)
  379. if getgenv().OFFON == true then do
  380. getgenv().SizeXCV = Vector3.new(t,t,t)
  381. getgenv().ReSizeXCV = SizeXCV
  382. end
  383. end
  384. end)
  385.  
  386. hbet:Colorpicker("Colorpicker",Color3.fromRGB(255,255,255), function(t)
  387. getgenv().ColourXCV = t
  388. end)
  389.  
  390. getgenv().TPSilentAimToggle = false
  391. mt:Toggle("TP Silent Aim",false, function(t)
  392. getgenv().TPSilentAimToggle = t
  393. end)
  394.  
  395. local function ClosestPlayerToCursor()
  396. local Closest = nil
  397. local Distance = 9e9
  398. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  399. if v ~= Player then
  400. if Workspace[v.Name]:FindFirstChild("Humanoid") and Workspace[v.Name].Humanoid.Health ~= 0 then
  401. local Position = Camera:WorldToViewportPoint(Workspace[v.Name].HumanoidRootPart.Position)
  402. local Magnitude = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  403. if Magnitude < Distance and Magnitude < FOV_Circle.Radius then
  404. Closest = Workspace[v.Name]
  405. Distance = Magnitude
  406. end
  407. end
  408. end
  409. end
  410. return Closest
  411. end
  412.  
  413. getgenv().TPSilentAimToggle = false
  414. spawn(function()
  415. game:GetService('RunService').RenderStepped:connect(function()
  416. pcall(function()
  417. if getgenv().TPSilentAimToggle then
  418. for i, v in pairs(game:GetService("Workspace").KnifeHost.PowerUps:GetDescendants()) do
  419. if v:IsA("Part") then
  420. v.Archivable = false
  421. end
  422. end
  423. end
  424. end)
  425. end)
  426. end)
  427.  
  428. spawn(function()
  429. game:GetService('RunService').RenderStepped:connect(function()
  430. pcall(function()
  431. if getgenv().TPSilentAimToggle then
  432. for i, v in pairs(game:GetService("Workspace").KnifeHost:GetDescendants()) do
  433. if v:IsA("Part") then
  434. if v.Archivable == true then
  435. local PlayerPosition = ClosestPlayerToCursor().baseHitbox.CFrame
  436. v.CFrame = PlayerPosition
  437. end
  438. end
  439. end
  440. end
  441. end)
  442. end)
  443. end)
  444.  
  445. getgenv().SilentAimToggle = false
  446. mt:Toggle("Silent Aim (possible kick)",false, function(t)
  447. getgenv().SilentAimToggle = t
  448. end)
  449.  
  450. getgenv().AimLockToggle = false
  451. mt:Toggle("Aim Lock (coming soon)",false, function(t)
  452. getgenv().TPSilentAimToggle = t
  453. end)
  454.  
  455. getgenv().TPAutoThrow = false
  456. mt:Toggle("TP Auto Throw",false, function(t)
  457. getgenv().TPAutoThrow = t
  458. end)
  459.  
  460.  
  461. getgenv().AutoThrow = false
  462. mt:Toggle("Auto Throw",false, function(t)
  463. getgenv().AutoThrow = t
  464. end)
  465.  
  466. getgenv().StabAura = false
  467. mt:Toggle("Stab Aura",false, function(t)
  468. getgenv().StabAura = t
  469. end)
  470.  
  471. getgenv().AutoEquipToggle = false
  472. mt:Toggle("Auto Equip",false, function(t)
  473. getgenv().AutoEquipToggle = t
  474. end)
  475.  
  476. local VotePad = workspace.Lobby.VoteStation.pad3.Position;
  477. local function getClosestPlayer()
  478. local Closest = Instance;
  479. local MaxDistance = number;
  480.  
  481. for I, Player in next, Players:GetPlayers() do
  482. if Player ~= LocalPlayer and LocalRootPart then
  483. local Character = workspace:FindFirstChild(Player.Name);
  484. local RootPart = Character and Character:FindFirstChild("HumanoidRootPart");
  485. local Humanoid = RootPart and Character:FindFirstChild("Humanoid");
  486.  
  487. if Humanoid and Humanoid.Health > 0 then
  488. local Distance = (VotePad - RootPart.Position).Magnitude;
  489. if Distance > 300 then
  490. Distance = (LocalRootPart.Position - RootPart.Position).Magnitude;
  491. if Closest then
  492. if Distance < MaxDistance then
  493. Closest = Player;
  494. MaxDistance = Distance;
  495. end;
  496. else
  497. Closest = Player;
  498. MaxDistance = Distance;
  499. end;
  500. end;
  501. end;
  502. end;
  503. end;
  504.  
  505. return Closest, MaxDistance;
  506. end;
  507. local ClosestPlayer = Instance;
  508. local ClosestPlayerCharacter = Instance;
  509. local ClosestPlayerRootPart = Instance;
  510.  
  511. local HitCheckCooldown = false;
  512. local HitCheck = LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("localknifehandler"):WaitForChild("HitCheck");
  513. local ThrowKnife = game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("ThrowKnife");
  514.  
  515. local ThrowCooldown = false;
  516. local ThrowCFrame = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
  517.  
  518. local TPTweenInfo = TweenInfo.new(0, Enum.EasingStyle.Linear, Enum.EasingDirection.Out);
  519. local TPOffset = CFrame.new(0, -30, 10);
  520.  
  521. local TweenService = game:GetService("TweenService");
  522. shared.n2autofarm = game:GetService("RunService").Heartbeat:Connect(function()
  523. ClosestPlayer = getClosestPlayer();
  524. ClosestPlayerCharacter = ClosestPlayer and workspace:FindFirstChild(ClosestPlayer.Name);
  525. ClosestPlayerRootPart = ClosestPlayerCharacter and ClosestPlayerCharacter:FindFirstChild("HumanoidRootPart");
  526.  
  527. if getgenv().AutoFarmToggle == true and TargetVisible and Target and LocalCharacter and LocalRootPart and LocalHumanoid then
  528. TargetCharacter = workspace:FindFirstChild(Target.Name);
  529. TargetRootPart = TargetCharacter and TargetCharacter:FindFirstChild("HumanoidRootPart");
  530.  
  531. if TargetRootPart then
  532. if not LocalCharacter:FindFirstChild("Knife") then
  533. local Knife = LocalPlayer.Backpack:FindFirstChild"Knife";
  534. if Knife then
  535. print"equipping";
  536. LocalHumanoid:EquipTool(Knife);
  537. end;
  538. end;
  539. if LocalCharacter:FindFirstChild("Knife") then
  540. if not HitCheckCooldown and (LocalRootPart.Position - TargetRootPart.Position).Magnitude <= 6.5 then
  541. print"stabbing";
  542. HitCheck:Fire(Target);
  543. HitCheckCooldown = true;
  544. task.spawn(function()
  545. task.wait(0.4);
  546. HitCheckCooldown = false;
  547. end);
  548. end;
  549. if not ThrowCooldown then
  550. ThrowCooldown = true;
  551. task.spawn(function()
  552. task.wait(0.3);
  553. if TargetRootPart then
  554. ThrowKnife:FireServer(TargetRootPart.Position, 0, ThrowCFrame);
  555. task.wait(0.1);
  556. print"unequipping";
  557. LocalHumanoid:UnequipTools();
  558. end;
  559.  
  560. task.wait(1);
  561. ThrowCooldown = false;
  562. end);
  563. end;
  564. end;
  565.  
  566. LocalHumanoid:ChangeState(11);
  567. TweenService:Create(
  568. LocalRootPart,
  569. TPTweenInfo,
  570. {CFrame = TargetRootPart.CFrame * TPOffset}
  571. ):Play();
  572. end;
  573. end;
  574. end);
  575.  
  576. getgenv().AutoCandyToggle = false
  577. mt:Toggle("Auto Candy",false, function(t)
  578. getgenv().AutoCandyToggle = t
  579. end)
  580.  
  581. getgenv().GhostFarmToggle = false
  582. mt:Toggle("Ghost Farm",false, function(t)
  583. getgenv().GhostFarmToggle = t
  584. end)
  585.  
  586. game.Players.LocalPlayer.CharacterAdded:connect(function()
  587. if getgenv().GhostFarmToggle == true then
  588. game.ReplicatedStorage.Remotes.RequestGhostSpawn:InvokeServer()
  589.  
  590. task.spawn(function()
  591. game.RunService.Stepped:connect(function()
  592. for i,v in pairs(game.Workspace.GhostCoins:GetDescendants()) do
  593. if v:IsA"TouchTransmitter" then
  594. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Parent, 0)
  595. task.wait()
  596. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Parent, 1)
  597. end
  598. end
  599. end)
  600. end)
  601. end
  602. end)
  603.  
  604. task.spawn(function()
  605. game.RunService.Stepped:connect(function()
  606. if getgenv().AutoCandyToggle == true then
  607. for i,v in pairs(game.Workspace.EventCurrency:GetDescendants()) do
  608. if v:IsA"TouchTransmitter" then
  609. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Parent, 0)
  610. task.wait()
  611. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Parent, 1)
  612. end
  613. end
  614. end
  615. end)
  616. end)
  617.  
  618. task.spawn(function()
  619. game.RunService.Stepped:connect(function()
  620. if getgenv().AutoFarmToggle == true then
  621. workspace.Gravity = -2;
  622. end
  623.  
  624. if getgenv().AutoFarmToggle == false then
  625. workspace.Gravity = 196.2;
  626. end
  627. end)
  628. end)
  629.  
  630. task.spawn(function()
  631. game.RunService.Stepped:connect(function()
  632. if getgenv().AutoEquipToggle == true then
  633. game.Players.LocalPlayer.Character.Humanoid:EquipTool(Game.Players.LocalPlayer.Backpack.Knife)
  634. end
  635. end)
  636. end)
  637.  
  638. local ClosestPlayer = function()
  639. local Closest = nil
  640. local Distance = 9e9
  641.  
  642. for i, v in next, game:GetService("Players"):GetPlayers() do
  643. if v.Name ~= Player.Name then
  644. if wS[v.Name] and wS[v.Name]:FindFirstChild("Humanoid") and wS[v.Name]:FindFirstChild("Humanoid").Health ~= 0 then
  645. local Magnitude = (Player.Character.Head.Position - wS[v.Name].Head.Position).Magnitude
  646. if Magnitude < Distance then
  647. Closest = wS[v.Name]
  648. Distance = Magnitude
  649. end
  650. end
  651. end
  652. end
  653. return Closest
  654. end
  655.  
  656. local cooldown = false
  657.  
  658. spawn(function()
  659. game:GetService("RunService").Heartbeat:connect(function()
  660. if getgenv().StabAura == true and Player.Character and not cooldown then
  661. if Player:DistanceFromCharacter(ClosestPlayer().Head.Position) <= 10 then
  662. Player.PlayerScripts.localknifehandler.HitCheck:Fire(ClosestPlayer())
  663. coroutine.wrap(function()
  664. cooldown = true;
  665. task.wait(.7)
  666. cooldown = false;
  667. end)();
  668. else
  669. task.wait()
  670. end
  671. end
  672. end)
  673. end)
  674.  
  675. local oldnc;
  676. oldnc = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
  677. if _G.TPSilentAimToggle == true and getnamecallmethod() == "FindPartOnRayWithIgnoreList" and self == game.Workspace then
  678. local camera = game.Workspace.CurrentCamera.CFrame.Position
  679. local pos = game.Workspace[ClosestPlayerToMouse.Name].HumanoidRootPart
  680. local n = Vector3.new(pos.Position)
  681. return pos, n
  682. end
  683. return oldnc(self, ...)
  684. end));
  685.  
  686. game:GetService("UserInputService").InputBegan:Connect(function(input)
  687. if input.UserInputType == Enum.UserInputType.MouseButton1 and getgenv().SilentAimToggle == true then
  688.  
  689. task.wait(.35);
  690.  
  691. local function ClosestPlayerToCursor()
  692. local Closest = nil;
  693. local Distance = 9e9;
  694. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  695. if v ~= Player then
  696. if Workspace[v.Name]:FindFirstChild("Humanoid") and Workspace[v.Name].Humanoid.Health ~= 0 then
  697. local Position = Camera:WorldToViewportPoint(Workspace[v.Name].HumanoidRootPart.Position);
  698. local Magnitude = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude;
  699. if Magnitude < Distance and Magnitude < FOV_Circle.Radius then
  700. Closest = workspace[v.Name];
  701. Distance = Magnitude;
  702. end
  703. end
  704. end
  705. end
  706. return Closest
  707. end
  708.  
  709. local ThrowAtTarget = function(args1, args2, args3)
  710. return game:GetService("ReplicatedStorage").Remotes.ThrowKnife:FireServer(args1,args2,args3);
  711. end
  712.  
  713. ThrowAtTarget(workspace[ClosestPlayerToCursor().Name].Head.Position, 0, CFrame.new());
  714.  
  715. end
  716. end)
  717.  
  718. spawn(function()
  719. game:GetService('RunService').RenderStepped:connect(function()
  720. pcall(function()
  721. if getgenv().SilentAimToggle then
  722. for i, v in pairs(game:GetService("Workspace").KnifeHost:GetDescendants()) do
  723. if v:IsA("Part") then
  724. if v.Archivable == true then
  725. local PlayerPosition = ClosestPlayerToCursor().baseHitbox.CFrame
  726. v.CFrame = PlayerPosition
  727. end
  728. end
  729. end
  730. end
  731. end)
  732. end)
  733. end)
  734.  
  735. game:GetService('RunService').RenderStepped:connect(function()
  736. if TargetVisible and Target and LocalCharacter and LocalRootPart and LocalHumanoid and getgenv().AutoThrow == true then
  737. TargetCharacter = game.Workspace:FindFirstChild(Target.Name);
  738. TargetRootPart = TargetCharacter and TargetCharacter:FindFirstChild("HumanoidRootPart");
  739.  
  740. if TargetRootPart then
  741. if not LocalCharacter:FindFirstChild("Knife") then
  742. local Knife = LocalPlayer:FindFirstChild("Knife");
  743. if Knife then
  744. LocalCharacter.Humanoid:EquipTool(Knife);
  745. end;
  746. end;
  747. end;
  748.  
  749. if not ThrowCooldown then
  750. ThrowCooldown = true;
  751. task.spawn(function()
  752. task.wait(0.1);
  753. ThrowCooldown = false;
  754. if TargetRootPart then
  755. ThrowKnife:FireServer(TargetRootPart.Position, 0, ThrowCFrame);
  756. end
  757. end)
  758. end
  759. end
  760. end)
  761.  
  762.  
  763. game:GetService('RunService').RenderStepped:connect(function()
  764. if TargetVisible and Target and LocalCharacter and LocalRootPart and LocalHumanoid and getgenv().TPAutoThrow == true then
  765. TargetCharacter = game.Workspace:FindFirstChild(Target.Name);
  766. TargetRootPart = TargetCharacter and TargetCharacter:FindFirstChild("HumanoidRootPart");
  767.  
  768. if TargetRootPart then
  769. if not LocalCharacter:FindFirstChild("Knife") then
  770. local Knife = LocalPlayer:FindFirstChild("Knife");
  771. if Knife then
  772. LocalCharacter.Humanoid:EquipTool(Knife);
  773. end;
  774. end;
  775. end;
  776.  
  777. if not ThrowCooldown then
  778. ThrowCooldown = true;
  779. task.spawn(function()
  780. task.wait(0.1);
  781. ThrowCooldown = false;
  782. if TargetRootPart then
  783. ThrowKnife:FireServer(TargetRootPart.Position, 0, ThrowCFrame);
  784. end
  785. end)
  786. end
  787. end
  788. end)
  789.  
  790. local oldnc;
  791. oldnc = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
  792. if getnamecallmethod() == "FindPartOnRayWithIgnoreList" and self == game.Workspace and getgenv().TPAutoThrow == true then
  793. local camera = game.Workspace.CurrentCamera.CFrame.Position
  794. local pos = game.Workspace[ClosestPlayerToMouse.Name].HumanoidRootPart
  795. local n = Vector3.new(pos.Position)
  796. return pos, n
  797. end
  798. return oldnc(self, ...)
  799. end));
  800.  
  801. vt:Toggle("Aim FOV",false, function(t)
  802. FOV_Circle.Visible = t
  803. end)
  804.  
  805. vt:Slider("FOV Size",50,300,100, function(t)
  806. FOV_Circle.Radius = t
  807. end)
  808.  
  809. vt:Slider("FOV Sides",3,100,13, function(t)
  810. FOV_Circle.NumSides = t
  811. end)
  812.  
  813. vt:Colorpicker("Colorpicker",Color3.fromRGB(255,255,255), function(t)
  814. FOV_Circle.Color = t
  815. end)
  816.  
  817. vt:Toggle("ESP (may take a while to load)",false, function(t)
  818. ESP:Toggle(t)
  819. getgenv().ESPEnabled = t
  820. end)
  821.  
  822. vt:Button("Remove Textures", function(t)
  823. local hasProperty = function(a, b)
  824. local c = a[b];
  825. end
  826.  
  827. task.spawn(function()
  828. for i, v in next, workspace:GetDescendants() do
  829. local Check = pcall(function()hasProperty(v, "Material")end)
  830.  
  831. if Check then
  832. v.Material = "Plastic";
  833. end
  834. end
  835.  
  836. workspace.DescendantAdded:Connect(function(v)
  837. local Check = pcall(function()hasProperty(v, "Material")end)
  838.  
  839. if Check then
  840. v.Material = "Plastic";
  841. end
  842. end)
  843. end)
  844. end)
  845.  
  846. vt:Button("Destroy Map", function(t)
  847. game.Workspace.GameMap:Destroy()
  848. end)
  849.  
  850. mct:Button("Server Hop", function(t)
  851. game:GetService("TeleportService"):Teleport(379614936, game:GetService("Players").LocalPlayer)
  852. end)
  853.  
  854. mct:Label("SCRIPT MADE BY BLAZE#7764")
  855.  
  856. print("SCRIPT MADE BY BLAZE#7764")
  857. print("W XENOWARE")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement