Hello,
I wanted to make a teleporting system for my game.
The script is supposed to teleport everyone to a random place within the random numbers but it always gets the people to the same place.
I hope anyone can help.
local x = math.random(-75, 45)
local z = math.random(-407, -270)
local players = game.Players:GetChildren()
for i = 1, #players do
players[i].Character:MoveTo(Vector3.new(x, 21.5, z))
end```