Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I want to make a Script that joins a server and that is always missing 10 seconds to join the race?

Asked by 2 years ago

I want to make a Script that joins a server and that is always missing 10 seconds to join the race.

This has been my progress but. It doesn't work at all, it just joins a server with no problem, but to join every 10 seconds, it doesn't.

local Servers = game.HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/3101667897/servers/Public?sortOrder=dsc&limit=100" ))
local function ServerHop()
for i,v in pairs(Servers.data) do
    if v.playing ~= v.maxPlayers 
 if game:GetService('ReplicatedStorage').raceTimer.Value == 10 then

        game:GetService('TeleportService'):TeleportToPlaceInstance(game.PlaceId, v.id, game:GetService("Players").LocalPlayer) 

  end
end
end
ServerHop()

Thank you for taking your time to read :D

Answer this question