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.
Please help me ,I tried opening catalog and searching for map loaders, but the seem to be much advanced.
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
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 p[i].Character.Head:remove() end
Good job so far. Just gotta keep practicing.
Pretty Sure That The Game.players:kill() Wont do anything