--BROUGHT TO YOU BY RobloxScripter.com!--
repeat wait() until game:IsLoaded()
local lp = game.Players.LocalPlayer
function getChar()
return lp.Character or lp.CharacterAdded:Wait()
end
function getHrp()
return getChar():WaitForChild("HumanoidRootPart")
end
for _, v in pairs(game:GetService("Workspace").HiddenStuff.TitanThing.Gems:GetChildren()) do
if v:IsA("MeshPart") then
firetouchinterest(getHrp(), v, 0)
firetouchinterest(getHrp(), v, 1)
end
end
for _, v in pairs(game:GetService("Workspace").HiddenStuff.TitanThing:GetChildren()) do
if v.Name == "Chest" and v:FindFirstChild("Toucher") then
firetouchinterest(getHrp(), v.Toucher, 0)
firetouchinterest(getHrp(), v.Toucher, 1)
end
end
local servers = {}
for _, v in ipairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
print(v.id)
servers[#servers + 1] = v.id
end
end
if #servers > 0 then
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, servers[math.random(1, #servers)])
end