I am following an online scripting tutorial from Alvin_Blox and even though i followed his code exactly my players wont teleport to the game map like his. Everything works fine until this point. For reference check out "how to make a roblox game" by Alvin_Blox on youtube. Specifically video #3. Also here is my code for reference:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
local MapsFolder = ServerStorage:WaitForChild("MapsFolder")
local Status = ReplicatedStorage:WaitForChild("Status")
local GameLength = 50
local Reward = 25
while true do Status.Value = "Waiting for enough players!" repeat wait(1) until game.Players.NumPlayers >= 1 Status.Value = "Intermission"
wait(10)
local plrs = {}
for i, player in pairs(game.Players:GetPlayers()) do
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 = game.Workspace
local SpawnPoints = ClonedMap:GetFirstChild("SpawnPoints")
if not SpawnPoints then
print("Spawnpoints not found")
end
local AvailableSpawnPoints = SpawnPoints:GetChildren()
--["Spawnpoinit","Spawnpoinit","Spawnpoinit","Spawnpoinit","Spawnpoinit","Spawnpoinit","Spawnpoinit","Spawnpoinit","Spawnpoinit",]
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 = game.Workspace.StartPack
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

3 comments
well, that "SpawnPoinit" table is actually just a comment left by the original creator, although i misspelled it. I tried inputting "SpawnPoint" into the parenthesis of GetChildren() but it still did not work.
isn't this from alvinblox? Check out his tutorial
Plus, I do not thing "GetFirstChild" is a thing. it is "FindFirstChild"