xvc200

Uni Hub

Jun 14th, 2025
2,244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.57 KB | None | 0 0
  1. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  2.  
  3. local gamename = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name
  4.  
  5. local player = game:GetService("Players").LocalPlayer
  6.  
  7. local Window = Fluent:CreateWindow({
  8. Title = "Uni Hub |",
  9. SubTitle = gamename,
  10. TabWidth = 130,
  11. Size = UDim2.fromOffset(490, 400),
  12. Acrylic = true,
  13. Theme = "Amethyst",
  14. MinimizeKey = Enum.KeyCode.LeftControl
  15. })
  16.  
  17. local Tabs = {
  18. Updates = Window:AddTab({ Title = "Home", Icon = "home" }),
  19. Main = Window:AddTab({ Title = "Main", Icon = "play" }),
  20. }
  21.  
  22. local Side = nil
  23.  
  24. local Toggle = Tabs.Main:AddToggle("Toggle", {
  25. Title = "Auto Player",
  26. Description = "Automatically Hit Notes",
  27. Default = false
  28. })
  29.  
  30. Toggle:OnChanged(function()
  31. if Toggle.Value then
  32. local VirtualInputManager = game:GetService("VirtualInputManager")
  33.  
  34. _G.auto = true
  35.  
  36. while _G.auto do
  37. pcall(function()
  38. local player = game:GetService("Players").LocalPlayer
  39. local ap = player.PlayerGui.Window.Game.Fields[Side].Inner
  40.  
  41. local column0 = ap.Lane1.Notes:GetChildren()
  42. local column1 = ap.Lane2.Notes:GetChildren()
  43. local column2 = ap.Lane3.Notes:GetChildren()
  44. local column3 = ap.Lane4.Notes:GetChildren()
  45. pcall(function ()
  46. column4 = ap.Lane5.Notes:GetChildren()
  47. end)
  48.  
  49. pcall(function ()
  50. column5 = ap.Lane6.Notes:GetChildren()
  51. end)
  52.  
  53. pcall(function ()
  54. column6 = ap.Lane7.Notes:GetChildren()
  55. end)
  56.  
  57. pcall(function ()
  58. column7 = ap.Lane8.Notes:GetChildren()
  59. end)
  60.  
  61. pcall(function ()
  62. column8 = ap.Lane9.Notes:GetChildren()
  63. end)
  64.  
  65. local function autoplay(children, keyCode)
  66. local frameDetected = false
  67.  
  68. for _, child in pairs(children) do
  69. if child.Position.Y.Scale > (0.4 + 1e-9) + _G.Delay and child:IsA("Frame") and #child:GetChildren() == 2 then
  70. frameDetected = true
  71. coroutine.wrap(function()
  72. VirtualInputManager:SendKeyEvent(true, keyCode, false, game)
  73.  
  74. while child.Parent do
  75. task.wait()
  76. end
  77. VirtualInputManager:SendKeyEvent(false, keyCode, false, game)
  78. end)()
  79. break
  80. end
  81. end
  82.  
  83. if not frameDetected then
  84. for _, child in pairs(children) do
  85. if child.Position.Y.Scale > 0.4 + _G.Delay and child:IsA("Frame") then
  86. coroutine.wrap(function()
  87. VirtualInputManager:SendKeyEvent(true, keyCode, false, game)
  88.  
  89. while child.Parent do
  90. task.wait()
  91. end
  92. VirtualInputManager:SendKeyEvent(false, keyCode, false, game)
  93. end)()
  94. break
  95. end
  96. end
  97. end
  98. end
  99.  
  100. autoplay(column0, key1)
  101. autoplay(column1, key2)
  102. autoplay(column2, key3)
  103. autoplay(column3, key4)
  104. autoplay(column4, key5)
  105. autoplay(column5, key6)
  106. autoplay(column6, key7)
  107. autoplay(column7, key8)
  108. autoplay(column8, key9)
  109. end)
  110. task.wait()
  111. end
  112. else
  113. _G.auto = false
  114. end
  115. end)
  116.  
  117. Toggle:SetValue(false)
  118.  
  119.  
  120. game.GuiService.MenuOpened:Connect(function()
  121. if Toggle.Value then
  122. _G.Toggled = true
  123. Toggle:SetValue(false)
  124. end
  125. end)
  126.  
  127. game.GuiService.MenuClosed:Connect(function()
  128. if not Toggle.Value and _G.Toggled then
  129. _G.Toggled = false
  130. Toggle:SetValue(true)
  131. end
  132. end)
  133.  
  134. local Keybind = Tabs.Main:AddKeybind("Keybind", {
  135. Title = "Auto Player Keybind",
  136. Mode = "Toggle",
  137. Default = "Insert",
  138.  
  139. Callback = function(Value)
  140. if Toggle.Value then
  141. Toggle:SetValue(false)
  142. else
  143. Toggle:SetValue(true)
  144. end
  145. end,
  146. })
  147.  
  148.  
  149. Tabs.Main:AddSection("Adjustments")
  150.  
  151. local Dropdown = Tabs.Main:AddDropdown("Dropdown", {
  152. Title = "Delay Mode",
  153. Values = {"Static", "Random"},
  154. Multi = false,
  155. Default = 1,
  156. Callback = function(Value)
  157. _G.Mode = Value
  158. end
  159. })
  160.  
  161. _G.Mode = "Static"
  162.  
  163. local Slider = Tabs.Main:AddSlider("Slider", {
  164. Title = "Note ms Delay",
  165. Description = "More = Later",
  166. Default = 0,
  167. Min = -0.35,
  168. Max = 0.35,
  169. Rounding = 2,
  170. Callback = function(Value)
  171. pcall(function()
  172. if _G.Mode == "Static" then
  173. _G.Delay = Value
  174. local player = game.Players.LocalPlayer
  175. if player.PlayerGui.GameGui.Windows.Configuration.Frame.Body.Content.Settings.Entries.ScrollingFrame.DownScroll.Toggle.Inner.BackgroundColor3 == {85, 255, 85} then
  176. _G.Delay = _G.Delay - _G.Delay - _G.Delay
  177. else
  178. _G.Delay = Value
  179. end
  180. else
  181. task.spawn(function()
  182. while true do
  183. _G.Delay = math.floor(math.random() * Value * 1000) / 1000
  184. task.wait()
  185. end
  186. end)
  187.  
  188. local player = game:GetService("Players").LocalPlayer
  189. if player.PlayerGui.GameGui.Windows.Settings.Frame.Body.Settings.Settings.ScrollingFrame.DownScroll.Toggle.Outer.Inner.ImageColor3 == {85, 255, 85} then
  190. _G.Delay = _G.Delay - _G.Delay - _G.Delay
  191. else
  192. _G.Delay = math.floor(math.random() * Value * 1000) / 1000
  193. end
  194. end
  195. end)
  196. end
  197. })
  198.  
  199. loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  200.  
  201. Window:SelectTab(1)
  202.  
  203. local Timer = Tabs.Updates:AddParagraph({
  204. Title = "Time: 00:00:00",
  205. })
  206.  
  207. local st = os.time()
  208.  
  209. local function timer()
  210. while true do
  211. local et = os.difftime(os.time(), st)
  212. local h = math.floor(et / 3600)
  213. local m = math.floor((et % 3600) / 60)
  214. local s = et % 60
  215. local ft = string.format("Time: %02d:%02d:%02d", h, m, s)
  216.  
  217. Timer:SetTitle(ft)
  218. task.wait(1)
  219. end
  220. end
  221.  
  222. coroutine.wrap(timer)()
  223.  
  224. Tabs.Updates:AddButton({
  225. Title = "Discord Server",
  226. Description = "Copies Discord Invite Link",
  227. Callback = function()
  228. setclipboard("https://discord.gg/44PHnFKxq5")
  229. Fluent:Notify({Title = "Uni Hub", Content = "Copied Successfuly", Duration = 2})
  230. end
  231. })
  232.  
  233. Tabs.Updates:AddButton({
  234. Title = "Run Infinite Yield",
  235. Callback = function()
  236. loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
  237. end
  238. })
  239.  
  240. local backpack = player:WaitForChild("Backpack")
  241. if backpack:FindFirstChild("Ui") then
  242. backpack:FindFirstChild("Ui"):Destroy()
  243. end
  244.  
  245. local tool = Instance.new("Tool")
  246. tool.Name = "Ui"
  247. tool.RequiresHandle = false
  248. tool.TextureId = "rbxassetid://135519282079256"
  249. tool.Parent = backpack
  250.  
  251. Open = true
  252. tool.Activated:Connect(function()
  253. if Open then
  254. Window:Minimize()
  255. else
  256. Window:Minimize()
  257. end
  258. end)
  259.  
  260. local VirtualUser = game:GetService('VirtualUser')
  261. game:GetService('Players').LocalPlayer.Idled:connect(function()
  262. VirtualUser:CaptureController()
  263. VirtualUser:ClickButton2(Vector2.new())
  264. end)
  265.  
  266. function CheckSide()
  267. pcall(function ()
  268. local player = game.Players.LocalPlayer
  269. local character = player.Character
  270. local rootPart = character and character:FindFirstChild("HumanoidRootPart")
  271.  
  272. local minDistTo11 = math.huge
  273. local minDistTo21 = math.huge
  274.  
  275. for _, stage in pairs(workspace.Map.Stages:GetChildren()) do
  276. if stage:FindFirstChild("Teams") then
  277. local pads = stage.Teams
  278. local part11 = pads:FindFirstChild("Left")
  279. local part21 = pads:FindFirstChild("Right")
  280.  
  281. if part11 and (rootPart.Position - part11.Position).magnitude <= 5 then
  282. local distTo11 = (rootPart.Position - part11.Position).magnitude
  283. if distTo11 < minDistTo11 then
  284. minDistTo11 = distTo11
  285. end
  286. end
  287.  
  288. if part21 and (rootPart.Position - part21.Position).magnitude <= 5 then
  289. local distTo21 = (rootPart.Position - part21.Position).magnitude
  290. if distTo21 < minDistTo21 then
  291. minDistTo21 = distTo21
  292. end
  293. end
  294. end
  295. end
  296.  
  297. if minDistTo11 < minDistTo21 then
  298. Side = "Left"
  299. elseif minDistTo21 < minDistTo11 then
  300. Side = "Right"
  301. else
  302.  
  303. end
  304. end)
  305. end
  306.  
  307. while true do
  308. local player = game:GetService("Players").LocalPlayer
  309. if player.PlayerGui.GameGui.Windows.SongSelector.Visible == true then
  310. CheckSide()
  311. end
  312. pcall(function()
  313. keymap = player.PlayerGui.Window.Game.Fields[Side].Inner
  314. key1 = Enum.KeyCode[keymap["Lane1"].Labels.Label.Text.text]
  315. key2 = Enum.KeyCode[keymap["Lane2"].Labels.Label.Text.text]
  316. key3 = Enum.KeyCode[keymap["Lane3"].Labels.Label.Text.text]
  317. key4 = Enum.KeyCode[keymap["Lane4"].Labels.Label.Text.text]
  318. key5 = Enum.KeyCode[keymap["Lane5"].Labels.Label.Text.text]
  319. key6 = Enum.KeyCode[keymap["Lane6"].Labels.Label.Text.text]
  320. key7 = Enum.KeyCode[keymap["Lane7"].Labels.Label.Text.text]
  321. key8 = Enum.KeyCode[keymap["Lane8"].Labels.Label.Text.text]
  322. key9 = Enum.KeyCode[keymap["Lane9"].Labels.Label.Text.text]
  323. end)
  324. task.wait()
  325. end
Advertisement
Add Comment
Please, Sign In to add comment