Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setfpscap(math.huge)
- local repo = 'https://raw.githubusercontent.com/xyzYuuki/LinoriaLib/main/'
- local Library = loadstring(game:HttpGet(repo .. 'Library.lua'))()
- local ThemeManager = loadstring(game:HttpGet(repo .. 'addons/ThemeManager.lua'))()
- local SaveManager = loadstring(game:HttpGet(repo .. 'addons/SaveManager.lua'))()
- --[[Library:Notify("Loading...")
- repeat
- task.wait(math.random(1, 3))
- until game:IsLoaded()]]
- local Window = Library:CreateWindow({
- Title = 'Yuki Hub | Dev.xyz | .gg/U8QWcNhkES',
- Center = true,
- AutoShow = true,
- TabPadding = 8,
- MenuFadeTime = 0.2,
- Size = UDim2.new(0.35, 0, 0.478, 0),
- })
- local Tabs = {
- Main = Window:AddTab('Main'),
- ['UI Settings'] = Window:AddTab('UI Settings'),
- }
- local AutoFarm = Tabs.Main:AddLeftGroupbox('Auto Farms')
- AutoFarm:AddToggle('AutoSpin', {
- Text = 'Auto Spin',
- Default = false,
- Callback = function(bool)
- getgenv().AutoSpin = bool
- end,
- })
- function exec()
- while wait() do
- if getgenv().AutoSpin then
- pcall(function()
- local Event = game:GetService("Players").xyzYuuki.PlayerGui.Window.Summon.Frame.Frame.Frame1["x 50 | Summon x1"].TextButton.LocalScript.RemoteEvent
- Event:FireServer()
- end)
- end
- end
- end
- spawn(exec)
- AutoFarm:AddToggle('AutoUnit', {
- Text = 'AutoUnit',
- Default = false, -- Default value (true / false)
- Callback = function(state)
- if state then
- _G.godmode2 = true
- while _G.godmode2 do
- local args = {
- [1] = "Yami",
- [2] = CFrame.new(-224.8807373046875, 22.399499893188477, 36.37224578857422, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("PlaceTower"):FireServer(unpack(args))
- wait(0.1)
- end
- else
- _G.godmode2 = false
- while _G.godmode2 do
- local args = {
- [1] = "Yami",
- [2] = CFrame.new(-224.8807373046875, 22.399499893188477, 36.37224578857422, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("PlaceTower"):FireServer(unpack(args))
- wait(0.1)
- end
- end
- end
- })
- AutoFarm:AddToggle('AutoReplay', {
- Text = 'Auto Replay',
- Default = false,
- Callback = function(bool)
- getgenv().AutoMeditate = bool
- end,
- })
- function exec()
- while wait() do
- if getgenv().AutoMeditate then
- pcall(function()
- local A_1 = game:GetService("Players").LocalPlayer
- local Event = game:GetService("Players").LocalPlayer.PlayerGui.Win.Frame1.Frame1.Frame1.Replay.TextButton.LocalScript.RemoteEvent
- Event:FireServer(A_1)
- end)
- end
- end
- end
- spawn(exec)
- -- UI Settings
- local MenuGroup = Tabs['UI Settings']:AddLeftGroupbox('Menu')
- -- I set NoUI so it does not show up in the keybinds menu
- MenuGroup:AddButton('Unload', function() Library:Unload() end)
- MenuGroup:AddLabel('Menu bind'):AddKeyPicker('MenuKeybind', { Default = 'Space', NoUI = true, Text = 'Menu keybind' })
- Library.ToggleKeybind = Options.MenuKeybind -- Allows you to have a custom keybind for the menu
- -- Addons:
- -- SaveManager (Allows you to have a configuration system)
- -- ThemeManager (Allows you to have a menu theme system)
- -- Hand the library over to our managers
- ThemeManager:SetLibrary(Library)
- SaveManager:SetLibrary(Library)
- -- Ignore keys that are used by ThemeManager.
- -- (we dont want configs to save themes, do we?)
- SaveManager:IgnoreThemeSettings()
- -- Adds our MenuKeybind to the ignore list
- -- (do you want each config to have a different menu key? probably not.)
- SaveManager:SetIgnoreIndexes({ 'MenuKeybind' })
- -- use case for doing it this way:
- -- a script hub could have themes in a global folder
- -- and game configs in a separate folder per game
- ThemeManager:SetFolder('Multiverse')
- SaveManager:SetFolder('Multiverse/specific-game')
- -- Builds our config menu on the right side of our tab
- SaveManager:BuildConfigSection(Tabs['UI Settings'])
- -- Builds our theme menu (with plenty of built in themes) on the left side
- -- NOTE: you can also call ThemeManager:ApplyToGroupbox to add it to a specific groupbox
- ThemeManager:ApplyToTab(Tabs['UI Settings'])
- -- You can use the SaveManager:LoadAutoloadConfig() to load a config
- -- which has been marked to be one that auto loads!
- SaveManager:LoadAutoloadConfig()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement