local env = type(getgenv) == "function" and getgenv() or _G env.SCRIPT_KEY = nil env.SLICEHUB_REQUESTED_TIER = "FREE" local DISCORD_INVITE = "https://discord.gg/Byx5SCnV7Q" local BOOTSTRAP_URL = "https://slicebot-production.up.railway.app/api/bootstrap?v=" .. tostring(os.time()) local Players = game:GetService("Players") local StarterGui = game:GetService("StarterGui") local CoreGui = game:GetService("CoreGui") local player = Players.LocalPlayer local function notify(title, message) pcall(function() StarterGui:SetCore("SendNotification", { Title = title, Text = message, Duration = 5 }) end) end local function copyText(text) local clipboardFunction = (type(setclipboard) == "function" and setclipboard) or (type(toclipboard) == "function" and toclipboard) if clipboardFunction then clipboardFunction(text) return true end return false end local function getGuiParent() if type(gethui) == "function" then local success, result = pcall(gethui) if success and result then return result end end return CoreGui end local oldGui = getGuiParent():FindFirstChild("SliceHubPublicKeyGui") if oldGui then oldGui:Destroy() end local screenGui = Instance.new("ScreenGui") screenGui.Name = "SliceHubPublicKeyGui" screenGui.ResetOnSpawn = false screenGui.IgnoreGuiInset = true screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = getGuiParent() local background = Instance.new("Frame") background.Name = "Background" background.Size = UDim2.fromScale(1, 1) background.BackgroundColor3 = Color3.fromRGB(7, 9, 14) background.BackgroundTransparency = 0.25 background.BorderSizePixel = 0 background.Parent = screenGui local main = Instance.new("Frame") main.Name = "Main" main.AnchorPoint = Vector2.new(0.5, 0.5) main.Position = UDim2.fromScale(0.5, 0.5) main.Size = UDim2.new(0.9, 0, 0, 330) main.ClipsDescendants = true main.BackgroundColor3 = Color3.fromRGB(16, 19, 28) main.BorderSizePixel = 0 main.Parent = background local sizeConstraint = Instance.new("UISizeConstraint") sizeConstraint.MaxSize = Vector2.new(460, 330) sizeConstraint.MinSize = Vector2.new(290, 310) sizeConstraint.Parent = main local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 14) corner.Parent = main local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(92, 112, 255) stroke.Thickness = 1.5 stroke.Transparency = 0.15 stroke.Parent = main local title = Instance.new("TextLabel") title.BackgroundTransparency = 1 title.Position = UDim2.new(0, 22, 0, 20) title.Size = UDim2.new(1, -44, 0, 34) title.Font = Enum.Font.GothamBold title.Text = "SLICEHUB" title.TextColor3 = Color3.fromRGB(235, 238, 255) title.TextSize = 25 title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = main local subtitle = Instance.new("TextLabel") subtitle.BackgroundTransparency = 1 subtitle.Position = UDim2.new(0, 22, 0, 58) subtitle.Size = UDim2.new(1, -44, 0, 42) subtitle.Font = Enum.Font.Gotham subtitle.Text = "Enter your SliceHub license key to continue." subtitle.TextColor3 = Color3.fromRGB(156, 163, 184) subtitle.TextSize = 14 subtitle.TextWrapped = true subtitle.TextXAlignment = Enum.TextXAlignment.Left subtitle.TextYAlignment = Enum.TextYAlignment.Top subtitle.Parent = main local keyBox = Instance.new("TextBox") keyBox.Position = UDim2.new(0, 22, 0, 115) keyBox.Size = UDim2.new(1, -44, 0, 48) keyBox.BackgroundColor3 = Color3.fromRGB(25, 29, 41) keyBox.BorderSizePixel = 0 keyBox.ClearTextOnFocus = false keyBox.Font = Enum.Font.Code keyBox.PlaceholderText = "SLICE-XXXX-XXXX-XXXX" keyBox.PlaceholderColor3 = Color3.fromRGB(100, 107, 127) keyBox.Text = "" keyBox.TextColor3 = Color3.fromRGB(235, 238, 255) keyBox.TextSize = 14 keyBox.TextXAlignment = Enum.TextXAlignment.Left keyBox.Parent = main local keyPadding = Instance.new("UIPadding") keyPadding.PaddingLeft = UDim.new(0, 14) keyPadding.PaddingRight = UDim.new(0, 14) keyPadding.Parent = keyBox local keyCorner = Instance.new("UICorner") keyCorner.CornerRadius = UDim.new(0, 9) keyCorner.Parent = keyBox local status = Instance.new("TextLabel") status.BackgroundTransparency = 1 status.Position = UDim2.new(0, 22, 0, 170) status.Size = UDim2.new(1, -44, 0, 25) status.Font = Enum.Font.Gotham status.Text = "" status.TextColor3 = Color3.fromRGB(255, 105, 105) status.TextSize = 13 status.TextXAlignment = Enum.TextXAlignment.Left status.Parent = main local loadButton = Instance.new("TextButton") loadButton.Position = UDim2.new(0, 22, 0, 205) loadButton.Size = UDim2.new(1, -44, 0, 47) loadButton.BackgroundColor3 = Color3.fromRGB(92, 112, 255) loadButton.BorderSizePixel = 0 loadButton.AutoButtonColor = true loadButton.Font = Enum.Font.GothamBold loadButton.Text = "Validate Key and Load" loadButton.TextColor3 = Color3.fromRGB(255, 255, 255) loadButton.TextSize = 14 loadButton.Parent = main local loadCorner = Instance.new("UICorner") loadCorner.CornerRadius = UDim.new(0, 9) loadCorner.Parent = loadButton local discordButton = Instance.new("TextButton") discordButton.Position = UDim2.new(0, 22, 0, 263) discordButton.Size = UDim2.new(1, -44, 0, 42) discordButton.BackgroundColor3 = Color3.fromRGB(35, 39, 55) discordButton.BorderSizePixel = 0 discordButton.AutoButtonColor = true discordButton.Font = Enum.Font.GothamMedium discordButton.Text = "Get a Key — Copy Discord Invite" discordButton.TextColor3 = Color3.fromRGB(210, 215, 235) discordButton.TextSize = 13 discordButton.Parent = main local discordCorner = Instance.new("UICorner") discordCorner.CornerRadius = UDim.new(0, 9) discordCorner.Parent = discordButton local loading = false local function startSliceHub() if loading then return end local enteredKey = keyBox.Text :gsub("^%s+", "") :gsub("%s+$", "") if enteredKey == "" then status.Text = "Enter your SliceHub key first." return end loading = true status.TextColor3 = Color3.fromRGB(170, 180, 255) status.Text = "Contacting the SliceHub license server..." loadButton.Text = "Loading..." loadButton.Active = false env.SCRIPT_KEY = enteredKey env.SLICEHUB_REQUESTED_TIER = "FREE" local success, err = pcall(function() local source = game:HttpGet(BOOTSTRAP_URL, true) assert( type(source) == "string" and #source > 0, "The bootstrap server returned an empty response." ) local compiled, compileError = loadstring(source) assert( compiled, compileError or "The bootstrap response could not be compiled." ) compiled() end) if success then screenGui:Destroy() return end loading = false loadButton.Active = true loadButton.Text = "Validate Key and Load" status.TextColor3 = Color3.fromRGB(255, 105, 105) status.Text = "Unable to load. Check your key or try again." warn("[SliceHub Public Loader] " .. tostring(err)) end loadButton.MouseButton1Click:Connect(startSliceHub) keyBox.FocusLost:Connect(function(enterPressed) if enterPressed then startSliceHub() end end) discordButton.MouseButton1Click:Connect(function() local copied = copyText(DISCORD_INVITE) if copied then discordButton.Text = "Discord Invite Copied!" notify("SliceHub", "Discord invite copied to your clipboard.") else discordButton.Text = DISCORD_INVITE notify("SliceHub", "Copy the Discord link shown on the button.") end task.delay(4, function() if discordButton and discordButton.Parent then discordButton.Text = "Get a Key — Copy Discord Invite" end end) end)