I was working in a teleport script, that sets some times a new Cframe to a model. Until then, this model can only be teleported to 1 region (a Cframe), and I wanted it could be teleported to 2 regions. I tried to use math.random and the main part of the script looks like this:
Cframe.new (Vector3.new (math.random (part1.Position, part2.Position)
But it did not work. After a series of tests I saw that the problem was involving math.random. If, instead, I put Random, for example, it would work. What's wrong with math.random? How do I correct this script

2 comments
I assume you want the script to teleport either to Part 1 or to Part 2?
math.random() does not take matrices. Vector3's are matrices. It will only take numbers.