How can i make search engine in roblox

yeah im confused

ok i dont know what to do what do I do ???

ehmmm hello? u gone or ok pls man

1 Like

now what i sended the video and replied 2 times to u and still gone?

Heres me scripting it.


LoadTime = 1.3 -- How long it takes to load. (Minimum 0.3 or there will be errors.)

CustomVariables = {"" or "" or "" or ""} -- Any custom searches you want.

local SearchString = Instance.new("StringValue")
SearchString.Name = "SearchString"
SearchString.Value = "https://Homescreen.com"
SearchString.Parent = game.ReplicatedStorage

while wait(0.5) do
       SearchString.Value = script.Parent.Text
end)

while wait(LoadTime) do
       if game.ReplicatedStorage.SearchString.Value == CustomVariables then
       local Find = script.Parent.Parent:FindFirstChild(CustomVariables)
       if Find then
           Find.Visible = true
           task()
           Find.Visible = false
       else
           ErrorSite.Visible = true -- Make a ErrorSite UI and name it this.
           Find.Visible = false
           print("404 Error | Game")
   end)
end
1 Like

To create a search engine in Roblox, you will need to use the Roblox Lua programming language and the Roblox API. Here is some pseudocode to give you an idea of how the search engine might work:

function search(query: string)
    -- search the database for items that match the query
    local results = searchDatabase(query)

    -- clear the scrolling frame
    scrollingFrame:ClearAllChildren()

    -- display the search results in the scrolling frame
    for _, item in pairs(results) do
        local button = createResultButton(item)
        scrollingFrame:AddChild(button)
    end
end

textBox.Changed:Connect(function()
    local query = textBox.Text
    search(query)
end)

This pseudocode defines a search function that takes a query string as an argument and searches a database for items that match the query. It then clears the scrolling frame and displays the search results in the form of buttons. The textBox.Changed event is used to trigger the search when the text in the text box changes.

You will need to implement the searchDatabase and createResultButton functions yourself. The searchDatabase function could use the string.find function to search the database for items that have names or descriptions that contain the query string. The createResultButton function could create a button for each search result, with the button’s text displaying the name of the item and its MouseButton1Click event displaying more information about the item when clicked.

I hope this helps! Let me know if you have any other questions.

1 Like

Il try when I can! Tommorow okay

1 Like

Sounds good! I need to type 30 words so

30 words! Cmon, Less gooooooooooooooooooo

2 Likes

Sorry but this is too broken with the end and I don’t want it to put it in custom variables and opening a page wont be easy and i don’t know where i sould put it

Im confused il try doing it now, wait where would createresultbutton be located exactly?

Players.danodanya12Beta21.PlayerGui.MainChrome.Searched.TextBox.LocalScript:15: attempt to call a Instance value


local PlayerService = game:GetService('Players')
local ReplicatedStorage = game:GetService('ReplicatedStorage')

local LocalPlayer = PlayerService.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild('PlayerGui')

local Websites = ReplicatedStorage:WaitForChild('Websites')

local TextBox = script.Parent
local scroll = script.Parent.Parent.ScrollingFrame


function search(query: string)
	-- search the database for items that match the query
	local results = Websites(query)

	-- clear the scrolling frame
	scroll:ClearAllChildren()

	-- display the search results in the scrolling frame
	for _, item in pairs(results) do
		local button = scroll(item)
		script:AddChild(button)
	end
end

TextBox.Changed:Connect(function()
	local query = TextBox.Text
	search(query)
end)

What is searchDatabase & createResultButton because they don’t exist?

Those functions does not exist in ROBLOX.

yeah i’ve changed a bit and its giving me error and this is still not fixed :expressionless:

Well, you’d probably somehow need to connect to a computer or something like that, but the question is if ROBLOX would take down your game.

dude u never listen are you not listening i SAID it searches in replicatedstorge there folder called websites and people can search websites I made and not REAL SEARCH ENGINE

1 Like

I made a search engine in roblox a while back while making a work around for Hyperlinks aswell (not allowed in roblox anyways but still cool since everyone doubted).

Here I used an API I found on rapid API’s to actually search and get the search results then displayed them onto the GUI (the exact API I used is in one of the later replies on the hyperlinks topic).

EDIT: Just saw you wanted to search ReplicatedStorage, not the web. Misleading title, anyways I’ll leave this reply just because

The guy who put that said it was pseudo code not copy and paste ready

1 Like

You still think this is misleading title look HERE!


That is not the title lol. The title of the post is misleading, I didn’t have the time to go through 70+replies

redeacted
redeacted
redeacted
redeacted

I have a question, are you trying to make it through google’s api?
If yes then please stop, as it could get you and your game banned.