Small Server Script
Key RequiredUniversal

Small Server Script

Universal Scriptlolnanilolnani 10.7K views 698 executesUpdated Mar 24, 2024
Unrated
00
Lua Script•18 lines (591 chars)
local Http = game:GetService("HttpService")
local TPS = game:GetService("TeleportService")
local Api = "https://games.roblox.com/v1/games/"

local _place = game.PlaceId
local _servers = Api.._place.."/servers/Public?sortOrder=Asc&limit=100"
function ListServers(cursor)
  local Raw = game:HttpGet(_servers .. ((cursor and "&cursor="..cursor) or ""))
  return Http:JSONDecode(Raw)
end

local Server, Next; repeat
  local Servers = ListServers(Next)
  Server = Servers.data[1]
  Next = Servers.nextPageCursor
until Server

TPS:TeleportToPlaceInstance(_place,Server.id,game.Players.LocalPlayer)

Features & Information

sd

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts