So basically, this is how Intense Sword fighting!'s round system works:
Player Spawns at a lobby The server pairs Player with another available player A small map is generated where they fight They teleport to the map After the match, the small map disappears and the two players are teleported back to the lobby and wait until there is an available player to duel (occasionally pairing the same two players).
How do I go about making something like this? A round system with minimal time wasted waiting at the lobby
I mean, you pretty much described how to layout the script? you have an idea what you want to happen right? Well, make a loop and loop through the stages of the battle, and then repeat.
try starting making each individual component of the script first, such as individual functions.
example
local function teleport(player)
-- do stuff
end
while true do -- any generic loop to repeat the fighting system
-- do stuff
teleport(random_person)
teleport(random_person)
-- wait until round ends, etc
-- set up new round
end
local TeleportPart = game.Workspace.MoveToPart
local player = game.players.localplayer
local roundTime = 120
local IntermissionTime = 25
while true do
local char = player.charater:Wait
char.HumanoidRootPart.Position = TeleportPart.Position
wait(roundTime)
print("RoundFinshed")
wait(IntermissionTime)
-- Starts from start again
end
Thanks everyone. I’m new to game development and I am trying to learn how to structure a game. I just wanted to know how many scripts I need to make this game possible and where to put those scripts.