-- // Services local ReplicatedStorage = game:GetService("ReplicatedStorage") local Remotes = ReplicatedStorage:WaitForChild("Remotes") local UIEvents = Remotes:WaitForChild("UIEvents") local SpinEvents = Remotes:WaitForChild("SpinEvents") local UserInputService = game:GetService("UserInputService") -- // UI Setup local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "InfSpinUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = game.CoreGui local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 230, 0, 100) Frame.Position = UDim2.new(0.05, 0, 0.3, 0) Frame.BackgroundColor3 = Color3.fromRGB(20, 60, 30) Frame.BorderSizePixel = 0 Frame.Active = true Frame.Draggable = true Frame.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 12) UICorner.Parent = Frame -- Title Bar local TitleBar = Instance.new("Frame") TitleBar.Size = UDim2.new(1, 0, 0, 30) TitleBar.BackgroundColor3 = Color3.fromRGB(30, 90, 50) TitleBar.BorderSizePixel = 0 TitleBar.Parent = Frame local Title = Instance.new("TextLabel") Title.Size = UDim2.new(0.85, 0, 1, 0) Title.Position = UDim2.new(0, 8, 0, 0) Title.BackgroundTransparency = 1 Title.Text = "♻ Inf Spin" Title.Font = Enum.Font.GothamBold Title.TextColor3 = Color3.fromRGB(235, 255, 235) Title.TextScaled = true Title.Parent = TitleBar -- Close Button local CloseButton = Instance.new("TextButton") CloseButton.Size = UDim2.new(0.15, -5, 1, 0) CloseButton.Position = UDim2.new(0.85, 0, 0, 0) CloseButton.BackgroundColor3 = Color3.fromRGB(80, 0, 0) CloseButton.Text = "✖" CloseButton.Font = Enum.Font.GothamBold CloseButton.TextColor3 = Color3.fromRGB(255, 220, 220) CloseButton.TextScaled = true CloseButton.Parent = TitleBar local CloseCorner = Instance.new("UICorner") CloseCorner.CornerRadius = UDim.new(0, 6) CloseCorner.Parent = CloseButton -- Start / Stop Button local ToggleButton = Instance.new("TextButton") ToggleButton.Size = UDim2.new(0.8, 0, 0, 45) ToggleButton.Position = UDim2.new(0.1, 0, 0, 45) ToggleButton.BackgroundColor3 = Color3.fromRGB(100, 200, 120) ToggleButton.Text = "▶ Start" ToggleButton.Font = Enum.Font.GothamBold ToggleButton.TextColor3 = Color3.fromRGB(20, 40, 20) ToggleButton.TextScaled = true ToggleButton.Parent = Frame local ButtonCorner = Instance.new("UICorner") ButtonCorner.CornerRadius = UDim.new(0, 10) ButtonCorner.Parent = ToggleButton -- // State local scriptRunning = false local isVisible = true -- Toggle Button Logic ToggleButton.MouseButton1Click:Connect(function() scriptRunning = not scriptRunning if scriptRunning then ToggleButton.Text = "■ Stop" ToggleButton.BackgroundColor3 = Color3.fromRGB(60, 170, 80) else ToggleButton.Text = "▶ Start" ToggleButton.BackgroundColor3 = Color3.fromRGB(100, 200, 120) end end) -- Close Button Logic CloseButton.MouseButton1Click:Connect(function() isVisible = false Frame.Visible = false end) -- Keybind to reopen UI UserInputService.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed and input.KeyCode == Enum.KeyCode.RightShift then isVisible = not isVisible Frame.Visible = isVisible end end) -- Main Loop task.spawn(function() while task.wait(1) do if scriptRunning then local args = { Instance.new("Part", nil) } pcall(function() UIEvents:WaitForChild("AuroraCollect"):FireServer(unpack(args)) SpinEvents:WaitForChild("PurchaseSpin"):InvokeServer() SpinEvents:WaitForChild("PerformSpin"):InvokeServer() end) end end end)