im trying to make a map chooser that chooses the map! and then teleports them to the map,but when i add the teleporter and test it out nothing works!
wait(2) maps = {} Inform=Instance.new("Message",Workspace) blank="" RoundTime = 120 for i,v in pairs (game.Lighting:GetChildren()) do if v:IsA'Model' then table.insert(maps, v.Name) end end while true do randomMap = maps[math.random(1,#maps)] SelectedMap=game.Lighting:WaitForChild(randomMap):Clone() SelectedMap.Parent=game.Workspace Inform.Text="Map chosen: "..SelectedMap.Name local player = game.Players:GetPlayers() for i = 1, #player do player[i].Character:MoveTo(Vector3.new(-31, 207.8, 16) end wait(3) Inform.Text=blank wait(RoundTime) SelectedMap:Destroy() end
the script is supposed to choose the map,so far i only made one,and when the script chooses it it teleports you to a position,but nothing works! can anyone help me?
Do the humanoid root part not the character