Advertisement
kipr987

NPC or Die

Oct 19th, 2024 (edited)
1,557
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.59 KB | None | 1 0
  1. for i, v in pairs(game:GetService("CoreGui"):GetChildren()) do
  2.     if v.Name == "ui" then
  3.         v:Destroy()
  4.     end
  5. end
  6. local UI = loadstring(game:HttpGetAsync("https://pastebin.com/raw/0589YkmB"))()
  7. local window = UI:Window("Premium")
  8. local nif = UI:Notification("Welcome to", game:GetService("Players").LocalPlayer.Name, "Okay!")_G.Esp = false
  9. local farm = window:Tab("AutoFarm")
  10. local main = window:Tab("Main")
  11. local player = window:Tab("LocalPlayer")
  12. _G.farm = false
  13. farm:Toggle("AutoFarm", false, function(value)
  14.     _G.farm = value
  15. end)
  16. _G.Esppart = false
  17. main:Toggle("Esp", false, function(value)
  18.     _G.Esppart = value
  19. end)
  20. _G.Wait = false
  21. main:Toggle("No wait E", false, function(value)
  22.     _G.Wait = value
  23. end)
  24. _G.Speed = 40
  25. _G.Walk = false
  26. local speed = player:Slider("WalkSpeed", 0, 100, 40, function(value)
  27.     _G.Speed = value
  28. end)
  29. _G.Noclip = false
  30. player:Toggle("Noclip", false, function(value)
  31.     _G.Noclip = value
  32. end)
  33. main:Button("Teleport mission", function(value)
  34.     for i, v in workspace:GetChildren() do
  35.         if v:FindFirstChild("Tasks") then
  36.             for i, f in v:FindFirstChild("Tasks"):GetChildren() do
  37.                 if f:FindFirstChild("ProximityPrompt") then
  38.                     if f:FindFirstChild("ProximityPrompt").Enabled == true then
  39.                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(f:FindFirstChild("Hitbox").Position)
  40.                     end
  41.                 end
  42.             end
  43.         end
  44.     end
  45. end)
  46. game:GetService("UserInputService").InputBegan:Connect(function(key,event)
  47.     if key.KeyCode == Enum.KeyCode.LeftShift then
  48.         _G.Walk = true
  49.     end
  50. end)
  51. game:GetService("UserInputService").InputEnded:Connect(function(key,event)
  52.     if key.KeyCode == Enum.KeyCode.LeftShift then
  53.         _G.Walk = false
  54.     end
  55. end)
  56. game:GetService("RunService").RenderStepped:Connect(function()
  57.     pcall(function()
  58.         if _G.Walk then
  59.             game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = _G.Speed
  60.         else
  61.             game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = 7.6
  62.         end
  63.     end)
  64. end)
  65.  
  66. spawn(function()
  67. while wait() do
  68.     pcall(function()
  69.         if _G.Esppart then
  70.             for i, v in workspace:GetChildren() do
  71.                 if game:GetService("Players"):GetPlayerFromCharacter(v) and v.Name ~= game:GetService("Players").LocalPlayer.Name then
  72.                     if not v:FindFirstChild("NewEsp") then
  73.                         local high = Instance.new("Part",v)
  74.                         high.Size = Vector3.new(1,1,1)
  75.                         high.CanCollide = false
  76.                         repeat wait() until v:FindFirstChild("HumanoidRootPart")
  77.                         high.CFrame = v:FindFirstChild("HumanoidRootPart").CFrame
  78.                         high.Name = "NewEsp"
  79.                         local weld = Instance.new("WeldConstraint",high)
  80.                         weld.Part0 = v:FindFirstChild("HumanoidRootPart")
  81.                         weld.Part1 = high
  82.                         local h = Instance.new("Highlight",high)
  83.                         h.FillColor = Color3.new(1, 0.431373, 0.439216)
  84.                     end
  85.                 end
  86.             end
  87.         wait(.3)
  88.         else
  89.             for i, v in workspace:GetChildren() do
  90.                 if game:GetService("Players"):GetPlayerFromCharacter(v) then
  91.                     if v:FindFirstChild("NewEsp") then
  92.                         v:FindFirstChild("NewEsp"):Destroy()
  93.                     end
  94.                 end
  95.             end
  96.         end
  97.     end)
  98. end
  99. end)
  100.  
  101.  
  102. game:GetService("RunService").RenderStepped:Connect(function()
  103.     for i, v in workspace:GetChildren() do
  104.         if v:FindFirstChild("Tasks") then
  105.             for i, f in v:FindFirstChild("Tasks"):GetChildren() do
  106.                 if f:FindFirstChild("ProximityPrompt") then
  107.                     if _G.Wait or _G.farm then
  108.                         f:FindFirstChild("ProximityPrompt").HoldDuration = 0
  109.                     else
  110.                         f:FindFirstChild("ProximityPrompt").HoldDuration = 2
  111.                     end
  112.                 end
  113.             end
  114.         end
  115.     end
  116. end)
  117.  
  118. spawn(function()
  119.     while wait() do
  120.         if _G.farm then
  121.             if game:GetService("Players").LocalPlayer.Team ~= "Sheriffs" then
  122. pcall(function()
  123.                 if workspace:FindFirstChild("Prison") then
  124.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(1090,10,-711))
  125.                 elseif workspace:FindFirstChild("Town") then
  126.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-321,3,725))
  127.                 elseif workspace:FindFirstChild("LighthouseCove") then
  128.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-324,-43,-2511))
  129.                 elseif workspace:FindFirstChild("ShoppingMall") then
  130.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(827,11,-18))
  131.                 elseif workspace:FindFirstChild("Hotel") then
  132.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(718,-25,-741))
  133.                 elseif workspace:FindFirstChild("RailYard") then
  134.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(1154,11,605))
  135.                 elseif workspace:FindFirstChild("Office") then
  136.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(333,14,-36))
  137.                 elseif workspace:FindFirstChild("PirateOutpost") then
  138.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(2313,20,-466))
  139.                 end
  140.                 for i, v in workspace:GetChildren() do
  141.                     if v:FindFirstChild("Tasks") then
  142.                         for i, f in v:FindFirstChild("Tasks"):GetChildren() do
  143.                             if f:FindFirstChild("ProximityPrompt") then
  144.                                 if f:FindFirstChild("ProximityPrompt").Enabled == true then
  145.                                     wait(7)
  146.                                     repeat
  147.                                         wait()
  148.                                         local VirtualInputManager = game:GetService("VirtualInputManager")
  149.                                         VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E.Value, false, game)
  150.                                         task.wait(.05)
  151.                                         VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E.Value, false, game)
  152.                                         --keypress(0x59, Y key)
  153.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(f:FindFirstChild("Hitbox").Position)
  154.                                     until f:FindFirstChild("ProximityPrompt").Enabled == false
  155.                                     if workspace:FindFirstChild("Prison") then
  156.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(1090,10,-711))
  157.                                     elseif workspace:FindFirstChild("Town") then
  158.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-321,3,725))
  159.                                     elseif workspace:FindFirstChild("LighthouseCove") then
  160.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-324,-43,-2511))
  161.                                     elseif workspace:FindFirstChild("ShoppingMall") then
  162.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(827,11,-18))
  163.                                     elseif workspace:FindFirstChild("Hotel") then
  164.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(718,-25,-741))
  165.                                     elseif workspace:FindFirstChild("RailYard") then
  166.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(1154,11,605))
  167.                                     elseif workspace:FindFirstChild("Office") then
  168.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(333,14,-36))
  169.                                     elseif workspace:FindFirstChild("PirateOutpost") then
  170.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(2313,20,-466))
  171.                                     end
  172.                                     wait(16)
  173.                                 end
  174.                             end
  175.                         end
  176.                     end
  177.                 end
  178. end)
  179.             end
  180.         end
  181.     end
  182. end)
  183. game:GetService("RunService").RenderStepped:Connect(function()
  184.     if _G.Noclip or _G.farm then
  185.         for i, v in game.Players.LocalPlayer.Character:GetChildren() do
  186.             if v:IsA("BasePart") then
  187.                 v.CanCollide = false
  188.             end
  189.         end
  190.     end
  191. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement