I came across this error in the Output tab and I don't quite know what's the problem, it says that the problem is in the line 64 so I checked if I misspelled something but everything was written correctly. I don't know what causes this, I'm a new scripter so my knowledge about this is very limited.
-- Variables defined.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
local MapsFolder = ServerStorage:WaitForChild("Maps")
local Status = ReplicatedStorage:WaitForChild("Status")
local GameLength = 50
local reward = 50
-- Waiting...
while true do
Status.Value = "We need more players to begin."
repeat wait(1) until game.Players.NumPlayers >= 1
Status.Value = "Intermission"
wait(5)
local plrs = {}
for i, player in pairs(game.Players:GetPlayers()) do
if player then
table.insert(plrs,player) -- Add each player into plrs table.
end
end
wait(2)
local AvailableMaps = MapsFolder:GetChildren()
local ChosenMap = AvailableMaps[math.random(1,#AvailableMaps)]
Status.Value = ChosenMap.Name.." was Chosen!"
local ClonedMap = ChosenMap:Clone()
ClonedMap.Parent = workspace
--Teleport players to that map.
local SpawnPoints = ClonedMap:FindFirstChild("SpawnPoints")
if not SpawnPoints then
print("No Spawnpoints.")
end
local AvailableSpawnPoints = SpawnPoints:GetChildren()
for i, player in pairs(plrs) do
if player then
character = player.Character
if character then
--Teleport
character:FindFirstChild("HumanoidRootPart").CFrame = AvailableSpawnPoints[1].CFrame
table.remove(AvailableSpawnPoints,1)

1 comment
Nope, still shows that message.