'I'm doing a round system with different places in roblox lua, how can I start?
local Jugadores = game:GetService("Players")
local TeletransportadorServicio = game:GetService("TeleportService")
local partida1 = 9199129451
local partida2 = 9199309873
local partida3 = 9199310158
local partida4 = 9199310447
local texto = game.StarterGui["Menu inicio"].Frame.texto_jugadores
local jugadoresTotal = #Jugadores:GetPlayers() -- esto coge los jugadores totales
local LobbySpawn = game.Workspace.LobbySpawn
local GameAreaSpawn = game.Workspace.SpawnLocation
Jugadores.PlayerAdded:Connect(function(player)
texto.Text= "Not enough players"
if jugadoresTotal >= 2 then
local contador = 10
while contador >= 0 do
texto.Text= string.format("Quedan %d segundos", contador)
wait(1)
contador = contador - 1
end
end
end)
This is my code, only this took me a lot of time. I made the variables partida# and the value is the id from each place. I want to dynamically start games when other is running, I don't only want a help for start developing it and where I can find the information, thanks.
I tryed a lot of tutorials in youtube but any of them worked.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
