Advertisement
_Thanh_Thy_Cute_

Knight Simulator AUTO FARM [OPEN SOURCE]

Jul 2nd, 2021
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/GreenDeno/Venyx-UI-Library/main/source.lua"))()
  2. local venyx = library.new("Knight Simulator", 5013109572)
  3.  
  4.  
  5. local themes = {
  6. Background = Color3.fromRGB(24, 24, 24),
  7. Glow = Color3.fromRGB(0, 0, 0),
  8. Accent = Color3.fromRGB(10, 10, 10),
  9. LightContrast = Color3.fromRGB(20, 20, 20),
  10. DarkContrast = Color3.fromRGB(14, 14, 14),
  11. TextColor = Color3.fromRGB(255, 255, 255)
  12. }
  13.  
  14.  
  15. local page = venyx:addPage("Main", 5012544693)
  16. local section1 = page:addSection("Auto Farm")
  17. local section2 = page:addSection("Misc&Cred")
  18.  
  19.  
  20. section1:addToggle("Start Farm", nil, function(value)
  21. getgenv().autofarm = value
  22. end)
  23.  
  24. coroutine.wrap(function()
  25. while wait() do
  26. if getgenv().autofarm == true then
  27. pcall(function()
  28. for i,v in pairs(game.Workspace.Enemies.Lobby:GetDescendants()) do
  29. if v.Humanoid.Health > 0 and game.Players.LocalPlayer.Character.Humanoid.Health > 0 then
  30. repeat
  31. wait()
  32. local vu = game:GetService("VirtualUser")
  33. vu:ClickButton1(Vector2.new(0,0))
  34. local humroot = game.Players.LocalPlayer.Character.HumanoidRootPart
  35. humroot.CFrame = CFrame.new(v.HitBox.Position)
  36. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0,-5,0) * CFrame.Angles(math.rad(90),0,0)
  37. until v.Humanoid.Health <= 0 or getgenv().autofarm == false
  38. end
  39. end
  40. end)
  41. end
  42. end
  43. end)()
  44.  
  45. game:GetService("RunService").RenderStepped:Connect(function()
  46. if autofarm == true then
  47. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  48. end
  49. end)
  50.  
  51. section2:addKeybind("Hide Keybind", N, function(keycall)
  52. if keycall then
  53. venyx:toggle()
  54. end
  55. end)
  56.  
  57. section2:addButton("Fickoeizy x)", function()
  58. print("https://discord.gg/9bRfh6Uu4r")
  59. end)
  60.  
  61. local theme = venyx:addPage("Themes", 5012544693)
  62. local colors = theme:addSection("Colors")
  63.  
  64. for theme, color in pairs(themes) do
  65. colors:addColorPicker(theme, color, function(color3)
  66. venyx:setTheme(theme, color3)
  67. end)
  68. end
  69.  
  70.  
  71. venyx:SelectPage(venyx.pages[1], true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement