Advertisement
Roblox_Exploiters

Legit1

Apr 19th, 2022
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. --Legit
  2.  
  3. if not game:IsLoaded() then game.Loaded:Wait() end
  4.  
  5. local Players = game:GetService("Players")
  6. local RunService = game:GetService("RunService")
  7. local InputManager = game:GetService("VirtualInputManager")
  8. local InputService = game:GetService("UserInputService")
  9.  
  10. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/sannin9000/Ui-Libraries/main/uwuware"))()
  11.  
  12. local Client = game:GetService("Players").LocalPlayer
  13. local PlayerGui = Client:WaitForChild("PlayerGui")
  14.  
  15. local InputFolder = Client:WaitForChild("Input")
  16. local Keybinds = InputFolder:WaitForChild("Keybinds")
  17.  
  18. local Marked = {}
  19.  
  20. local KeysTable = {
  21. ["4"] = {"Up", "Down", "Left", "Right"},
  22. ["6"] = {S = "L3", D = "L2", F = "L1", J = "R1", K = "R2", L = "R3"},
  23. ["7"] = {S = "L3", D = "L2", F = "L1", Space = "Space", J = "R1", K = "R2", L = "R3"},
  24. ["9"] = {A = "L4", S = "L3", D = "L2", F = "L1", Space = "Space", H = "R1", J = "R2", K = "R3", L = "R4"}
  25. }
  26.  
  27. RunService.Heartbeat:Connect(function()
  28. if not Library.flags.AutoPlayer then return end
  29. if not Menu or not Menu.Parent then return end
  30. if Menu.Config.TimePast.Value <= 0 then return end
  31.  
  32. local SideMenu = Menu.Game:FindFirstChild(Menu.PlayerSide.Value)
  33. local IncomingNotes = SideMenu.Arrows.IncomingNotes
  34.  
  35. local Keys = KeysTable[tostring(#IncomingNotes:GetChildren())] or IncomingNotes:GetChildren()
  36.  
  37. for Key, Direction in pairs(Keys) do
  38. Direction = tostring(Direction)
  39.  
  40. local ArrowsHolder = IncomingNotes:FindFirstChild(Direction) or IncomingNotes:FindFirstChild(Key)
  41. if not ArrowsHolder then continue end
  42.  
  43. for _, Object in ipairs(ArrowsHolder:GetChildren()) do
  44. if table.find(Marked, Object) then continue end
  45. local Keybind = Keybinds:FindFirstChild(Direction) and Keybinds[Direction].Value
  46.  
  47. local Start = SideMenu.Arrows:FindFirstChild(Direction) and SideMenu.Arrows[Direction].AbsolutePosition.Y or SideMenu.Arrows[Key].AbsolutePosition.Y
  48. local Current = Object.AbsolutePosition.Y
  49. local Difference = not InputFolder.Downscroll.Value and (Current - Start) or (Start - Current)
  50.  
  51. local IsHell = Object:FindFirstChild("HellNote") and Object:FindFirstChild("HellNote").Value
  52.  
  53. if Difference <= 0.35 and not IsHell then
  54. Marked[#Marked + 1] = Object
  55.  
  56. InputManager:SendKeyEvent(true, Enum.KeyCode[Keybind], false, nil)
  57. repeat task.wait() until not Object or not Object:FindFirstChild("Frame") or Object.Frame.Bar.Size.Y.Scale <= 0
  58. InputManager:SendKeyEvent(false, Enum.KeyCode[Keybind], false, nil)
  59. end
  60. end
  61. end
  62. end)
  63.  
  64. PlayerGui.ChildAdded:Connect(function(Object)
  65. if Object:IsA("ScreenGui") and Object:FindFirstChild("Game") then
  66. table.clear(Marked)
  67. getgenv().Menu = Object
  68. end
  69. end)
  70.  
  71. for _, ScreenGui in ipairs(PlayerGui:GetChildren()) do
  72. if not ScreenGui:FindFirstChild("Game") then continue end
  73. getgenv().Menu = ScreenGui
  74. end
  75.  
  76. do
  77. local Window = Library:CreateWindow("FNB Legit") do
  78. local Folder = Window:AddFolder("Autoplayer") do
  79. local Toggle = Folder:AddToggle({text = "AutoPlayer", flag = "AutoPlayer" })
  80. end
  81.  
  82. local CreditsFolder = Window:AddFolder("Credits")
  83.  
  84. CreditsFolder:AddLabel({text = "Script: Zoinks#7514"})
  85. CreditsFolder:AddLabel({text = "Happy Hackin!"})
  86.  
  87. Window:AddBind({text = "Menu toggle", key = Enum.KeyCode.RightControl, callback = function() Library:Close() end })
  88. Window:AddButton({text = "Instant Solo", callback = function()
  89. pcall(function()
  90. PlayerGui.SingleplayerUI.ButtonPressed:FireServer()
  91. end)
  92. end})
  93. end
  94. Library:Init()
  95. end
  96.  
  97. local Old; Old = hookmetamethod(game, "__newindex", newcclosure(function(self, ...)
  98. local Args = {...}
  99. local Property = Args[1]
  100.  
  101. if not Client.Character then return end
  102. local Humanoid = Client.Character:FindFirstChild("Humanoid")
  103. if not Humanoid then return end
  104.  
  105. if self == Humanoid and Property == "Health" and not checkcaller() then return end
  106.  
  107. return Old(self, ...)
  108. end))
  109.  
  110. warn("Loaded script!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement