Hello
I am making a round system, I am trying to use the LoadCharacter function and reloading the players characters into the map, then deleting the lobby but everytime I try this I get an error and it would not load the character.
Here is the error that pops up in the output:

I also have another problem, I am trying to teleport the chosen monster and cloning it onto a random spawn which is a part but it would just spawn into the position it was in the workspace and it wouldn’t clone onto the part, there were no errors in the output.
Here is the script I am using:
local IntermissionTime = 30
local RoundTime = 240
local Intermission = false
local Round = false
local Status = game:GetService("ReplicatedStorage"):WaitForChild("Values").StatusValue
local MonsterFolder = game.ServerStorage:WaitForChild("MonsterFolder"):GetChildren()
local MapsFolder = game.ServerStorage:WaitForChild("MapFolder"):GetChildren()
local LobbyFolder = game.ServerStorage:WaitForChild("LobbyFolder"):GetChildren()
local lobbyClone = LobbyFolder[math.random(1, #LobbyFolder)]:Clone()
lobbyClone.Parent = workspace.CurrentLobby
local player = game.Players:GetPlayerFromCharacter(script.Parent)
local function RunGame()
Intermission = true
while wait() do
for i = IntermissionTime, 1, -1 do
Status.Value = "Intermission: " .. i
wait(1)
end
Status.Value = "Choosing Map..."
local mapClone = MapsFolder[math.random(1, #MapsFolder)]:Clone()
local monsterSpawns = mapClone:FindFirstChild("MonsterSpawns"):GetChildren()
wait(2)
Status.Value = "Map: " .. mapClone.Name
mapClone.Parent = workspace.CurrentMap
wait(2)
game.Workspace.CurrentLobby:ClearAllChildren()
Status.Value = "Starting Game..."
wait(2)
local MonsterClone = MonsterFolder[math.random(1, #MonsterFolder)]:Clone()
MonsterClone.Parent = monsterSpawns[math.random(1, #monsterSpawns)]
while wait() do
Round = true
for i = RoundTime, 1, -1 do
Status.Value = i
wait(1)
end
end
end
end
spawn(RunGame)
How can I fix this?