Im trying to make only select players in an array teleport to a certain location in my code here:
1 | local teleport = PlayersPlaying |
2 | for index = 1 , #teleport do |
3 | PlayersPlaying [ index ] .Character:MoveTo(Vector 3. new( 176 , 31.5 , 635 )) |
4 | end |
but it says "Attempt to index nil with MoveTo".
If anyone can help I will greatly appreciate it!