I am wondering if on line 3 of this code would work if I found a specific object in a Vector3.
function GetPlayers() for i,v in pairs(game.Players:GetPlayers()) do v.Character.MoveTo(Vector3.new(game.Workspace:FindFirstChild("Map").TP.Position)) --Here end end
MoveTo is a function!
Remember when calling a function you use ':' not '.' as it's not a property.
'v.Character.MoveTo'
... should be 'v.Character:MoveTo
'
Position is a Vector3 value not a CFrame value!
'TP.Position
' ... should be 'TP.CFrame
' assuming it's a part of some-sort.
Your code should look like this:
function GetPlayers() for i,v in pairs(game.Players:GetPlayers()) do v.Character:MoveTo(Vector3.new(game.Workspace:FindFirstChild("Map").TP.CFrame)) --Here end end