Advertisement
ExodiaForce

npc triggerbot

Nov 9th, 2024 (edited)
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. local on = true
  2. local currenttarget = nil
  3. local whitelistedname = ""
  4. local rep = game.Players.LocalPlayer:GetAttribute("Reputation")
  5. local ui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  6. ui.IgnoreGuiInset = true
  7. local t = Instance.new("TextLabel",ui)
  8. t.Size = UDim2.fromOffset(60,25)
  9. t.Position = UDim2.fromScale(0.5,0.525)
  10. t.AnchorPoint = Vector2.new(0.5,0.5)
  11. t.TextColor3 = Color3.new(1,1,1)
  12. t.TextScaled = true
  13. t.BackgroundTransparency=0.8
  14. t.TextTransparency = 0.25
  15. t.BackgroundColor3 = Color3.new(0,0,0)
  16. local t2 = Instance.new("TextLabel",ui)
  17. t2.Size = UDim2.fromOffset(60,25)
  18. t2.Position = UDim2.fromScale(0.5,0.54)
  19. t2.AnchorPoint = Vector2.new(0.5,0.5)
  20. t2.TextColor3 = Color3.new(1,1,1)
  21. t2.TextScaled = true
  22. t2.BackgroundTransparency=0.8
  23. t2.TextTransparency = 0.25
  24. t2.BackgroundColor3 = Color3.new(0,0,0)
  25.  
  26. if rep > 0 then
  27. whitelistedname = "Rebel"
  28. elseif rep < 0 then
  29. whitelistedname = "Vulture"
  30. else
  31. whitelistedname = "Blah Blah just some random name nothing will have"
  32. end
  33. game.UserInputService.InputBegan:Connect(function(i)
  34. if i.KeyCode == Enum.KeyCode.RightAlt then
  35. ui.Enabled = not ui.Enabled
  36. end
  37. if i.KeyCode == Enum.KeyCode.RightBracket then
  38. on = not on
  39. print("Triggerbot Status: "..tostring(on))
  40. end
  41. if i.KeyCode == Enum.KeyCode.R then
  42. currenttarget = nil
  43. end
  44. end)
  45. game:GetService("RunService").RenderStepped:Connect(function()
  46. t.Text = tostring(on)
  47. if currenttarget == nil then
  48. t2.Text = "No Target"
  49. else
  50. t2.Text = currenttarget.Name
  51. end
  52. if on then
  53. local m = game.Players.LocalPlayer:GetMouse()
  54. local h = m.Target
  55. if h then
  56. local m = h:FindFirstAncestorOfClass("Model")
  57. if m then
  58. if m:FindFirstChildOfClass("Humanoid") and not game.Players:FindFirstChild(m.Name) and not m:FindFirstAncestor("Other") and not string.find(m.Name,whitelistedname) and not string.find(m.Name,"Broker") and not string.find(m.Name,"Merchant") then
  59. if m:FindFirstChildOfClass("Humanoid").Health > 0 then
  60. currenttarget = m
  61.  
  62. end
  63. end
  64. end
  65. end
  66. end
  67. if currenttarget ~= nil and on then
  68. workspace.CurrentCamera.CFrame = CFrame.lookAt(workspace.CurrentCamera.CFrame.Position,currenttarget:FindFirstChild("Head").Position)
  69. mouse1click()
  70. if currenttarget.Humanoid.Health <= 0 then
  71. currenttarget = nil
  72. end
  73. else
  74. currenttarget = nil
  75. end
  76. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement