Advertisement
veelymm

Ken Omega Auto Protein

Jul 12th, 2020
4,608
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.34 KB | None | 1 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local Char = plr.Character if not Char then Char = game.Workspace.Live:WaitForChild(plr.Name) end
  3. local hum = Char.Humanoid or Char:WaitForChild("Humanoid")
  4. local user = game:GetService("VirtualUser")
  5. local mouse = plr:GetMouse()
  6. user:CaptureController()
  7.  
  8. if game.CoreGui:FindFirstChild("KNCWarning") == nil then
  9.  
  10. local KNCWarning = Instance.new("ScreenGui")
  11. local Warning = Instance.new("TextLabel")
  12.  
  13. KNCWarning.Name = "KNCWarning"
  14. KNCWarning.Parent = game.CoreGui
  15. KNCWarning.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16. KNCWarning.Enabled = false
  17.  
  18. Warning.Name = "Warning"
  19. Warning.Parent = KNCWarning
  20. Warning.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  21. Warning.BackgroundTransparency = 1.000
  22. Warning.Position = UDim2.new(0.1, 0, 0.25, 0)
  23. Warning.Size = UDim2.new(0, 1500, 0, 27)
  24. Warning.Font = Enum.Font.Garamond
  25. Warning.Text = "Auto protein is on, turn it off before moving"
  26. Warning.TextColor3 = Color3.fromRGB(255, 0, 0)
  27. Warning.TextSize = 85.000
  28. Warning.TextStrokeTransparency = 0.000
  29. Warning.TextWrapped = true
  30. end
  31.  
  32. local KNCWarning = game.CoreGui:FindFirstChild("KNCWarning")
  33.  
  34. if _G.KNC == true then
  35.     KNCWarning.Enabled = true
  36.    
  37. elseif _G.KNC == false then
  38.     KNCWarning.Enabled = false
  39. end
  40.  
  41. while _G.KNC == true do
  42. wait()
  43.  
  44. if game.ReplicatedStorage.Remotes.Request:InvokeServer("Food") <= 40 then --hunger bar 1-100
  45. fireclickdetector(game:GetService("Workspace").Shop["Jerk Chicken $70"].Head.ClickDetector) --food and price
  46. end
  47. if game.Players.LocalPlayer.Backpack:FindFirstChild("Jerk Chicken") then
  48. hum:EquipTool(plr.Backpack:FindFirstChild("Jerk Chicken")) --food
  49. user:ClickButton1(Vector2.new(mouse.x, mouse.y))
  50. wait(1)
  51. hum:EquipTool(plr.Backpack:FindFirstChild(_G.KNCTool))
  52. end
  53.  
  54. if plr.Character.Status:FindFirstChild("Bar") == nil and (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - game.Workspace:FindFirstChild("Protein Bar $45", true).Head.Position).Magnitude < 15 then
  55.     fireclickdetector(game.Workspace:FindFirstChild("Protein Bar $45", true).Head.ClickDetector)
  56. wait(1)
  57. if game.Players.LocalPlayer.Backpack:FindFirstChild("Protein Bar") then
  58. hum:EquipTool(plr.Backpack:FindFirstChild("Protein Bar"))
  59. end
  60. user:ClickButton1(Vector2.new(mouse.x, mouse.y))
  61. wait(0.3)
  62. hum:EquipTool(plr.Backpack:FindFirstChild(_G.KNCTool))
  63. wait(1)
  64. end
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement