Hello, I am making an Minigame. I made an script. sometimes its not working but sometimes its working! Here is the script! I think i am correct but why its not working sometimes?
maps = game.ServerStorage.Maps:GetChildren()
map = maps[math.random(1, #maps)]
wait(3)
map:Clone().Parent = game.Workspace
game.Workspace.Message.Value = "The Game is Starting!"
wait(3)
for i, Player in pairs(game.Players:GetPlayers()) do
print(Player.Name)
if Player.Character then
Player.Character:MoveTo(workspace:FindFirstChild(map.Name).Spawns:GetChildren()[math.random(1, #workspace:FindFirstChild(map.Name).Spawns:GetChildren())].Position)
end
end

2 comments
A model is not a basepart and has not position. You can set the PrimaryPart which will use the given part as the Models CFrame.
but its sometimes working! Can i get the new correct script?