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

Whats a very simple additive so I can have a minimum of 1 person to spawn on each spawn point?

Asked by 9 years ago
gameSpawn =  game.Workspace.gameSpawn
lobbySpawn = game.Workspace.Lobby.LobbySpawn


local function teleportTarget(Target)
    for i,v in ipairs(game.Players:GetChildren()) do
        pcall (function() v.Character.HumanoidRootPart.CFrame = Target.CFrame

end)
    end
end

for i = 20,0,-1 do
wait(1)
print(i)
end

teleportTarget(gameSpawn)
0
You should provide an explanation and not just code. NotsoPenguin 705 — 9y

2 answers

Log in to vote
0
Answered by 9 years ago

I answered this question twice already for you, go check your other threads and you can implement what I answered.

0
I know but its too much that i keep trying to figure out with you robloxiveboy 25 — 9y
0
There's no simple additive, really. Coding can be frustrating, and it takes a lot of long thinking and in-depth comprehension to understand what you're doing. aquathorn321 858 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

Create a table of all the spawns you are going to have. If a player spawns on one spawn, remove that spawn using table.remove and do the same for the rest.

Answer this question