ocal Replicatedstorage = game:GetService("ReplicatedStorage")
local Serverstorage = game:GetService("ServerStorage")
local MapsFolder = Serverstorage:WaitForChild("Maps")
local Status = Replicatedstorage:WaitForChild("Status")
local Gamelength = 60 local reward = 15
while true do
Status.Value = "waiting for enough players"
repeat wait(1) until game. Players.NumPlayers >= 2
Status.Value = "intermission"
wait(10)
local plrs = {}
for i, player in pairs (game.players:GetPlayers() ) do
end
if player then
table.insert(plrs,player)
end
end wait(2)
local AvailableMaps = MapsFolder:GetChildren()
local ChosenMap = AvailableMaps[math.random(1,#AvailableMaps)]
Status.Value = ChosenMap.name.. "chosen"
local ClonedMap = ChosenMap:Clone()
ClonedMap.Parent = workspace
local SpawnPoints = ClonedMap:FindFirstChild("SpawnPoints")
if not SpawnPoints then
print("You dont have SpawnPoints!")
end
local AvailableSpawnPoints = SpawnPoints:GetChildren()
for i, player in pairs(plrs) do
if player then
character = player.character
if character then
character:FindFirstChild("HumanoidRootPart").CFrame = AvailableSpawnPoints[1].CFrame
table.remove(AvailableSpawnPoints,1)
local Sword = ServerStorage.Sword:Clone()
Sword.Parent = player.Backpack
local GameTag = Instance.new("BoolValue")
GameTag.name = "GameTag"
GameTag.Parent = player.character
else
if not player then
table.remove(plrs,i)
end
end
end
end
Status.Value = "Get ready to Play!"
wait(2)
for i = Gamelength, 0,-1 do
for x, player in pairs(plrs) do
if player then
character = player.charecter
if not character then
else
if character:FindFirstChild("GameTag") then
print(player.name.."is still in the Game!")
else
table.remove(plrs,x)
print(player.name.."has been removed!")
end
end
else
table.remove(plrs,x)
print(player.name.."has been removed!"
end
end
Status.Value = "There are "..i.."seconds remaining, and"..#plrs.."players left"
if #plrs == 1 then
Staus.Value = "The winner is"..plrs[1].name
plrs[1].leaderstats.Cash.Value = plrs[1].leaderstats.Cash.Value + reward
break
elseif #plrs == 0 then
Status.value = "Nobody won!"
break
elseif i == 0
then
Status.Value = "times up!"
break
end
wait(1)
end print("End of game!") for i,player in pairs:Getplayers() do
character = player.character
if not character then
else
if character:FindFirstChild("GameTag") then
character.GameTag:Destroy()
end
if player.Backpack:FindFirstChild("Sword") then
player.Backpack.Sword:Destroy()
end
if character:FindFirstChild("Sword") then
character.Sword:Destroy()
end
end
player:Loadcharacter()
end
ClonedMap:destroy() Status.Value = "Game ended" wait(2)

3 comments
The script does not do anything, It does not teleport or any thing
It might not be the script then..
It might not be the script then..