How do i make a UI with server list always update?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to figure out how to always keep the UI there till it closes so it can be like a server list.

  2. What is the issue? Include screenshots / videos if possible!
    I don’t know how to keep the UI there so like if you leave and say a server is still open and you join the main game that server UI will still be there and I don’t know how to do it with a datastore.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve looked up YT vids and searched the dev forum for over 2 hours and haven’t found anything.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local tps = game:GetService("TeleportService")

local tpss = Instance.new("TeleportOptions")





local myEvent = game.ReplicatedStorage.MyEvent

game.Players.PlayerAdded:Connect(function(player)
local msgs = game:GetService("MessagingService")

msgs:SubscribeAsync("test",function(message)


	print("hi")
	local textlable = player.PlayerGui:WaitForChild("yyyy").Frame.Frame.TextLabel
	local clone = textlable:Clone()
	clone.Parent = player.PlayerGui:WaitForChild("yyyy").Frame.Frame
	print("hi4")

	local code, id = game:GetService('TeleportService'):ReserveServer(14488330953)

	print(code)
	print("hi2")

	print("sent!")


	local success, result = tps:TeleportToPrivateServer(14488330953, code, {player})
end)



game.ReplicatedStorage.MyEvent.OnServerEvent:Connect(function(player)
msgs:PublishAsync("test")

		local code, id = game:GetService('TeleportService'):ReserveServer(14488330953)

		msgs:SubscribeAsync('wd',function(message)


			print("hi")
			local textlable = player.PlayerGui:WaitForChild("yyyy").Frame.Frame.TextLabel
			local clone = textlable:Clone()
			clone.Parent = player.PlayerGui:WaitForChild("yyyy").Frame.Frame
			print("hi4")
		

			print(code)
			print("hi2")

			print("sent!")

			textlable.Text = code

			local success, result = tps:TeleportToPrivateServer(14488330953, code, {player})
		end)


end)
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

1 Like