Still have questions? Join our Discord server and get real time help.
1

Hi, I am a beginner in Lua, I tried to make a script that loads a map onto the workspace and then teleports the players to the spawn place of each group, I tried the loading maps script and it worked, but I have no Idea on how to teleport a player to a place and make him spawn only in that place until the round is completed.

wait(10)
game.ServerStorage.Lava:Clone().Parent = game.Workspace
game.ServerStorage.Weapons.Sword:Clone().Parent = game.Player:FindFirstChild("Backpack")
wait(300)
game.Workspace.Lava:Destroy()
game.Players:kill()
wait(10)
-- other map coming soon


0

First of all, it's Game.Players not game.Player.

Second, if you want to kill all the players use this:

p = game.Players:GetChildren()

for i = 1,#p do
end


Good job so far. Just gotta keep practicing.

0
Ohh thx, I need to practice more on thr for thing, I am confused onto it, But okay... (Though it's not the answer I was looking for but thx!) buoyantair 123 — 6y