local t = game.Workspace.ScreenGui.TextBox
while wait (1) do
if game.Workspace.ScreenGui.TextBox.Text == "The Map Chosen Is..." then
game.Workspace["Starting..."].Disabled = true
local maps = game.ReplicatedStorage.Maps:GetChildren()
local select = table.remove(maps,math.random(#maps))
wait (6)
t.Text = ""..select.Name
select.Parent = game.Workspace
end
target = CFrame.new(game.Workspace.(select.Hehe.Position))
for i, player in ipairs(game.Players:GetChildren()) do
--Make sure the character exists and its torso exists
if player.Character and player.Character:FindFirstChild("Torso") then
--add an offset of 5 for each character
player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
end
end
end
The script is supposed to select a random map, then put it in the Workspace. After that, the script is supposed to teleport all the players to the specific brick on the map. This whole script does not work. Can anyone edit it for me?

5 comments
Line 4: Not only have you made an object with dots in in its name but you are disabling a script (I smell an error there). Is that script by any chance "Starting..."?
Nope, no errors. This script starts because of Starting...
Are you sure? Line 16 looks a bit off.
Whats wrong with it?
game.Workspace.(select.Hehe.Position) What are you even trying to do there? And how did that not produce a syntax error?