Advertisement
nuttanun734

a

Feb 19th, 2021
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. -- Globals
  2. Enabled = false
  3. Distance = 7
  4. npcs = {}
  5.  
  6. -- Variable
  7. local player = game.Players.LocalPlayer
  8.  
  9. -- Get NPCs
  10. for i,v in pairs(workspace.Mob_Spawns2:GetChildren()) do
  11. npcs[v.Name] = false
  12. end
  13.  
  14. -- NoClip
  15. game:GetService("RunService").Stepped:Connect(function()
  16. if Enabled then
  17. player.Character.Humanoid:ChangeState(11)
  18. end
  19. end)
  20.  
  21. -- TP Bypass
  22. local old;
  23. old = hookfunction(getrawmetatable(game).__namecall,function(...)
  24. local args = {...}
  25. local method = getnamecallmethod()
  26. if method == "Kick" then
  27. return wait(1e17)
  28. elseif method == "InvokeServer" then
  29. return true
  30. elseif Enabled and not checkcaller() and method == "FireServer" and (args[2] == "UpdateState" or args[2] == "InputEnded" or args[2] == "InputBegan") then
  31. return
  32. end
  33. return old(...)
  34. end)
  35.  
  36. -- Get Enemy
  37. function enemy()
  38. local npc
  39. local reward = 0
  40. local shit = workspace.Living:GetChildren()
  41. for i = 1, #shit do local v = shit[i]
  42. if npcs[v.Name] and v:FindFirstChild("Money") and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Health") and v.Health.Value > 0 then
  43. local m = v.Money.Value
  44. if m > reward then
  45. reward = m
  46. npc = v
  47. end
  48. end
  49. end
  50. return npc
  51. end
  52.  
  53. -- UI Library
  54. local library = loadstring(game:HttpGetAsync('https://pastebin.com/raw/edJT9EGX'))()
  55. local window = library:CreateWindow("cock and ball")
  56. window:AddLabel({text = "Made by egg salad"})
  57. window:AddToggle({text='Enabled',callback=function(a)Enabled=a;end})
  58. window:AddSlider({text='Distance',min=-9,max=9,float=0.25,value=Distance,callback=function(a)Distance=a;end})
  59. local folder = window:AddFolder("Targets")
  60. for i,v in pairs(npcs) do
  61. folder:AddToggle({text=i,callback=function(a)npcs[i]=a;end})
  62. end
  63. library:Init()
  64.  
  65. -- Skeet
  66. while true do
  67. local v = enemy()
  68. if Enabled and typeof(v) == "Instance" then
  69. repeat
  70. if player.Character and player.Character:FindFirstChild("RemoteEvent") and not player.Character:FindFirstChildOfClass("Model") then
  71. player.Character.RemoteEvent:FireServer("InputEnded",{Input=Enum.KeyCode[player.PlayerStats.StandKey.Value]})
  72. end
  73. wait()
  74. pcall(function()
  75. player.Character.HumanoidRootPart.CFrame = CFrame.new(v.HumanoidRootPart.Position) * CFrame.Angles(math.rad(Distance < 0 and 90 or -90), 0, 0) + Vector3.new(0, Distance, 0)
  76. player.Character.RemoteEvent:FireServer("InputEnded", {Input=Enum.UserInputType.MouseButton1})
  77. end)
  78. until not Enabled or not npcs[v.Name] or not v.Parent or not v:FindFirstChild("Health") or v.Health.Value <= 0
  79. end
  80. wait(.1)
  81. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement