--[[ game:GetService("ReplicatedStorage").RerollEvents.NenColorReroll:FireServer() game:GetService("ReplicatedStorage").RerollEvents.HatsuReroll:FireServer() ]] --[[ ]] --// REPO local repo = 'https://raw.githubusercontent.com/violin-suzutsuki/LinoriaLib/main/' --// REPO DEFINES local lib = loadstring(game:HttpGet(repo .. 'Library.lua'))() local themeManager = loadstring(game:HttpGet(repo .. 'addons/ThemeManager.lua'))() local saveManager = loadstring(game:HttpGet(repo .. 'addons/SaveManager.lua'))() --// WINDOW DEFINE local window = lib:CreateWindow({ Title = "Eclipse | Hunter X Anomaly", Center = true, AutoShow = true, TabPadding = 8, MenuFadeTime = 0.2 }) --// TAB DEFINES local tabs = { main = window:AddTab('Main'), farming = window:AddTab('Farming'), rolling = window:AddTab('Rolling'), uiSettings = window:AddTab("UI Settings") } --// VARIABLES local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer local character = localPlayer.Character local lastSpinTime = 0 --// FUNCTIONS function extractClan(inputString) local namePart = string.match(inputString, "^(.+),") if not namePart then return nil, "Invalid format. Expected format: 'Name , Age'" end namePart = string.gsub(namePart, "^%s*(.-)%s*$", "%1") return string.match(namePart, "%S+$"), nil end function createSafeZone() local safeZone = Instance.new("Part", workspace) safeZone.Name = "safeZone" safeZone.Anchored = true safeZone.CanCollide = true end --// BOX DEFINES local mainBox = tabs.main:AddLeftGroupbox('Main') local farmingPushups = tabs.farming:AddLeftGroupbox('Pushups') local rollingClan = tabs.rolling:AddLeftGroupbox('Clan') local rollingPotential = tabs.rolling:AddRightGroupbox('Potential') local rollingMoney = tabs.rolling:AddLeftGroupbox('Money') --// MAIN DEFINES --[[ mainBox:AddButton({ Text = "Goto Safezone", Func = function() createSafeZone() end }) ]] --// PUSHUPS DEFINES farmingPushups:AddToggle('farmPushups', { Text = "Do Pushups", Default = false, Callback = function(Value) end }) farmingPushups:AddButton({ Text = "Do Pushup", Func = function(Value) local key = game:GetService("Players").LocalPlayer.PlayerGui.PushupsGui.Pushups.Button.Text game:GetService("Players").LocalPlayer:FindFirstChild("PlayerGui"):FindFirstChild("PushupsGui"):FindFirstChild("Pushups"):WaitForChild("RemoteEvent"):FireServer(Enum.KeyCode[key]) end }) --// CLAN DEFINES rollingClan:AddToggle('clanRoll', { Text = "Roll Clan", Default = false, Callback = function(Value) end }) rollingClan:AddDropdown('chosenClan', { Values = { 'Freecss', 'Zoldyck', 'Lucilfer', 'Netero', 'Kurta', 'Kreuger' }, Default = 1, Multi = false, Text = "Clan to spin for", Callback = function(Value) end }) --// POTENTIAL DEFINES rollingPotential:AddToggle('potentialRoll', { Text = "Roll Potential", Default = false, Callback = function(Value) end }) rollingPotential:AddSlider('potentialValue', { Text = "Potential to roll for", Default = 0, Min = 0, Max = 100, Rounding = 0, Compact = false, Callback = function(Value) end }) --// MONEY SHIT rollingMoney:AddButton({ Text = "Give Money", Func = function() game:GetService("ReplicatedStorage").RerollEvents.RandomMoney:FireServer() end }) --// SETTINGS DEFINE local MenuGroup = tabs.uiSettings:AddLeftGroupbox('Menu') MenuGroup:AddButton('Unload', function() lib:Unload() end) MenuGroup:AddLabel('Menu bind'):AddKeyPicker('MenuKeybind', { Default = 'End', NoUI = true, Text = 'Menu keybind' }) lib.ToggleKeybind = Options.MenuKeybind themeManager:SetLibrary(lib) saveManager:SetLibrary(lib) saveManager:IgnoreThemeSettings() saveManager:SetIgnoreIndexes({ 'MenuKeybind' }) themeManager:SetFolder('Eclipse') saveManager:SetFolder('Eclipse/HunterXAnomaly') saveManager:BuildConfigSection(tabs.uiSettings) themeManager:ApplyToTab(tabs.uiSettings) local CreditsGroup = tabs.uiSettings:AddRightGroupbox('Credits') CreditsGroup:AddLabel("Created by Kokuen") CreditsGroup:AddLabel("UI by Linoria") saveManager:LoadAutoloadConfig() local toggleConnections = game:GetService('RunService').RenderStepped:Connect(function() if Toggles.farmPushups.Value then local key = game:GetService("Players").LocalPlayer.PlayerGui.PushupsGui.Pushups.Button.Text if key ~= "..." then game:GetService("Players").LocalPlayer:FindFirstChild("PlayerGui"):FindFirstChild("PushupsGui"):FindFirstChild("Pushups"):WaitForChild("RemoteEvent"):FireServer(Enum.KeyCode[key]) end end if Toggles.clanRoll.Value then local clan = extractClan(game:GetService("Players").LocalPlayer.PlayerGui.MainGUI.Main.NameAge.Text) local currentTime = tick() if clan ~= Options.chosenClan.Value then if currentTime - lastSpinTime >= 0.2 then lastSpinTime = currentTime game:GetService("ReplicatedStorage").RerollEvents.ClanReroll:FireServer() end end end if Toggles.potentialRoll.Value then local potential = game:GetService("Players").LocalPlayer.PlayerGui.StatsViewer.StatsViewer.NaturalPotential.Text local currentTime = tick() if tonumber(potential) ~= Options.potentialValue.Value then if currentTime - lastSpinTime >= 0.2 then lastSpinTime = currentTime game:GetService("ReplicatedStorage").RerollEvents.PotReroll:FireServer() end end end end) lib:OnUnload(function() toggleConnections:Disconnect() print('Unloaded.') lib.Unloaded = true end)