local UIS = game:GetService("UserInputService") local HttpService = game:GetService("HttpService") local TweenService = game:GetService("TweenService") local starterGui = game:GetService("StarterGui") local searchPrompt = "" starterGui:SetCore("SendNotification", { Title = "Info", Text = "Press T to show the search box. And right ctrl to quit script.", Time = 10 }) -- code is full mess from here local screenGui = Instance.new("ScreenGui", game:GetService("CoreGui")) local resultFrame = Instance.new("Frame", screenGui) resultFrame.AnchorPoint = Vector2.new(0.5, 0.5) resultFrame.Size = UDim2.new(0.3, 28, 0.4, 36) resultFrame.Position = UDim2.new(1, 400, 0.5, 152) -- UDim2.new(1, 400, 0.5, 152) resultFrame.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235) resultFrame.BorderSizePixel = 0 Instance.new("UICorner", resultFrame) local searchFrame = Instance.new("Frame", screenGui) searchFrame.AnchorPoint = Vector2.new(0.5, 0.5) searchFrame.Size = UDim2.new(0, 0, 0, 36) -- UDim2.new(0.3, 28, 0, 36) searchFrame.Position = UDim2.new(0.5, 0, 0.5, -74) searchFrame.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235) searchFrame.BorderSizePixel = 0 Instance.new("UICorner", searchFrame) local searchTextBox = Instance.new("TextBox", searchFrame) searchTextBox.AnchorPoint = Vector2.new(0.5, 0.5) searchTextBox.Size = UDim2.new(0.5, 166, 0, 36) searchTextBox.Position = UDim2.new(0.5, 0, 0, 18) searchTextBox.BackgroundTransparency = 1 searchTextBox.BorderSizePixel = 0 searchTextBox.ClearTextOnFocus = false searchTextBox.PlaceholderText = "Search Scriptblox..." searchTextBox.Text = "" searchTextBox.TextSize = 20 searchTextBox.Font = Enum.Font.SourceSans searchTextBox.TextColor3 = Color3.new(0.129411, 0.129411, 0.129411) searchTextBox.PlaceholderColor3 = Color3.new(0.129411, 0.129411, 0.129411) searchTextBox.TextXAlignment = Enum.TextXAlignment.Left searchTextBox.TextTransparency = 1 searchTextBox.Visible = false local searchIcon = Instance.new("ImageLabel", searchFrame) searchIcon.Position = UDim2.new(0, 18, 0, 6) searchIcon.Size = UDim2.new(0, 20, 0, 20) searchIcon.Image = "http://www.roblox.com/asset/?id=15118373450" searchIcon.BackgroundTransparency = 1 searchIcon.ImageTransparency = 1 local searchSeperator = Instance.new("Frame", searchFrame) searchSeperator.Size = UDim2.new(0, 2, 0, 20) searchSeperator.BackgroundColor3 = Color3.new(0.231372, 0.231372, 0.231372) searchSeperator.BorderSizePixel = 0 searchSeperator.Position = UDim2.new(0, 50, 0, 8) searchSeperator.Visible = false local scrollFrame = Instance.new("ScrollingFrame", resultFrame) scrollFrame.AnchorPoint = Vector2.new(0.5, 0.5) scrollFrame.Position = UDim2.new(0.5, 0, 0.5, 0) scrollFrame.Size = UDim2.new(1, 0, 1, -10) scrollFrame.BackgroundTransparency = 1 scrollFrame.BorderSizePixel = 0 scrollFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y function fetchScriptbloxScripts(query, freeorpaid) local scripts = {} local responseRequest = request({ Url = "https://scriptblox.com/api/script/search?q=" .. HttpService:UrlEncode(query) .. "&mode=" .. freeorpaid .. "&max=20&page=1", Method = "GET" }) response = HttpService:JSONDecode(responseRequest.Body) for _, scriptResult in pairs(response.result.scripts) do local responseRequest2 = request({ Url = "https://www.scriptblox.com/api/script/" .. scriptResult['slug'], Method = "GET" }) response2 = HttpService:JSONDecode(responseRequest2.Body) table.insert(scripts, response2.script) end return scripts end local posChange = 100 local scriptsUi = {} searchTextBox.FocusLost:Connect(function(enterPressed, inputThatCausedFocusLoss) if enterPressed then if searchTextBox.Text == "" then posChange = 100 for i = #scriptsUi, 1, -1 do scriptsUi[i]:Destroy() table.remove(scriptsUi, i) end TweenService:Create(searchTextBox, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0), {TextTransparency = 1}):Play() TweenService:Create(searchIcon, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0), {ImageTransparency = 1}):Play() TweenService:Create(searchFrame, TweenInfo.new(0.6, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0), {Size = UDim2.new(0, 0, 0, 36)}):Play() TweenService:Create(resultFrame, TweenInfo.new(1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0), {Position = UDim2.new(1, 400, 0.5, 152)}):Play() searchSeperator.Visible = false task.wait(0.4) searchTextBox.Visible = false return end posChange = 100 for i = #scriptsUi, 1, -1 do scriptsUi[i]:Destroy() table.remove(scriptsUi, i) end searchPrompt = searchTextBox.Text for _, sc in pairs(fetchScriptbloxScripts(searchPrompt, "free")) do --print(sc.title) --print(sc.script) local scriptFrame = Instance.new("Frame", scrollFrame) scriptFrame.AnchorPoint = Vector2.new(0.5, 0.5) scriptFrame.Size = UDim2.new(0, 560, 0, 160) scriptFrame.Position = UDim2.new(0, 300, 0, posChange) scriptFrame.BackgroundColor3 = Color3.new(0.305882, 0.305882, 0.305882) Instance.new("UICorner", scriptFrame) local execButton = Instance.new("TextButton", scriptFrame) execButton.Size = UDim2.new(0, 100, 0, 50) execButton.Position = UDim2.new(0, 448, 0, 10) --execButton.BackgroundTransparency = 1 execButton.TextColor3 = Color3.new(0.156862, 0.156862, 0.156862) execButton.BackgroundColor3 = Color3.new(0.215686, 0.419607, 0.192156) execButton.TextScaled = true execButton.Text = "Execute" Instance.new("UICorner", execButton) local titleLabel = Instance.new("TextLabel", scriptFrame) titleLabel.TextSize = 26 titleLabel.Position = UDim2.new(0, 24, 0, 16) titleLabel.Size = UDim2.new(0, 300, 0, 0) titleLabel.Font = Enum.Font.SourceSans titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.BorderSizePixel = 0 titleLabel.TextColor3 = Color3.new(0.156862, 0.156862, 0.156862) titleLabel.Text = sc.title titleLabel.TextWrapped = true local descLabel = Instance.new("TextLabel", scriptFrame) descLabel.TextSize = 20 descLabel.Position = UDim2.new(0, 24, 0, 36) descLabel.Size = UDim2.new(0, 300, 0, 0) descLabel.Font = Enum.Font.SourceSans descLabel.TextXAlignment = Enum.TextXAlignment.Left descLabel.BorderSizePixel = 0 descLabel.TextColor3 = Color3.new(0.156862, 0.156862, 0.156862) descLabel.Text = sc.features descLabel.TextWrapped = true local dislikesFrame = Instance.new("Frame", scriptFrame) dislikesFrame.Position = UDim2.new(0, 8.8, 0, 128) dislikesFrame.Size = UDim2.new(0, 40, 0, 28) dislikesFrame.BorderSizePixel = 0 dislikesFrame.BackgroundColor3 = Color3.new(0.709803, 0.172549, 0.172549) Instance.new("UICorner", dislikesFrame) local dislikesLabel = Instance.new("TextLabel", scriptFrame) dislikesLabel.TextSize = 18 dislikesLabel.Position = UDim2.new(0, 24, 0, 140) dislikesLabel.Size = UDim2.new(0, 300, 0, 0) dislikesLabel.Font = Enum.Font.SourceSans dislikesLabel.TextXAlignment = Enum.TextXAlignment.Left dislikesLabel.BorderSizePixel = 0 dislikesLabel.TextColor3 = Color3.new(0.721568, 0.721568, 0.721568) dislikesLabel.Text = sc.dislikeCount dislikesLabel.TextWrapped = true local likesFrame = Instance.new("Frame", scriptFrame) likesFrame.Position = UDim2.new(0, 56, 0, 128) likesFrame.Size = UDim2.new(0, 40, 0, 28) likesFrame.BorderSizePixel = 0 likesFrame.BackgroundColor3 = Color3.new(0.172549, 0.709803, 0.207843) Instance.new("UICorner", likesFrame) local likesLabel = Instance.new("TextLabel", scriptFrame) likesLabel.TextSize = 18 likesLabel.Position = UDim2.new(0, 72, 0, 140) likesLabel.Size = UDim2.new(0, 300, 0, 0) likesLabel.Font = Enum.Font.SourceSans likesLabel.TextXAlignment = Enum.TextXAlignment.Left likesLabel.BorderSizePixel = 0 likesLabel.TextColor3 = Color3.new(0.721568, 0.721568, 0.721568) likesLabel.Text = sc.likeCount likesLabel.TextWrapped = true local authorLabel = Instance.new("TextLabel", scriptFrame) authorLabel.TextSize = 18 authorLabel.Position = UDim2.new(0, 200, 0, 146) authorLabel.Size = UDim2.new(0, 300, 0, 0) authorLabel.Font = Enum.Font.SourceSans authorLabel.TextXAlignment = Enum.TextXAlignment.Left authorLabel.BorderSizePixel = 0 authorLabel.TextColor3 = Color3.new(0.721568, 0.721568, 0.721568) authorLabel.Text = "Uploaded by " .. sc.owner.username authorLabel.TextWrapped = true execButton.MouseButton1Click:Connect(function() starterGui:SetCore("SendNotification", { Title = "Executing Script!", Text = "Executing " .. sc.title .. "!", Time = 6 }) loadstring(sc.script)() end) posChange += 162 table.insert(scriptsUi, scriptFrame) end TweenService:Create(resultFrame, TweenInfo.new(1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0), {Position = UDim2.new(0.5, 0, 0.5, 152)}):Play() end end) UIS.InputBegan:Connect(function(input, gameProcessedEvent) if gameProcessedEvent == true then return end if input.KeyCode == Enum.KeyCode.T then searchSeperator.Visible = true searchTextBox.Visible = true TweenService:Create(searchTextBox, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 1), {TextTransparency = 0}):Play() TweenService:Create(searchIcon, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 1), {ImageTransparency = 0}):Play() TweenService:Create(searchFrame, TweenInfo.new(1, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0, false, 0), {Size = UDim2.new(0.3, 28, 0, 36)}):Play() end if input.KeyCode == Enum.KeyCode.RightControl then screenGui:Destroy() end end)