Hello, im a new developer and im working on my game.
I have this script which teleports players to GameBricks when the game starts. but, I have a huge problem! When the game starts the script teleports players to a different gamebrick each. I want them to all teleport to the same one. How can I do this?
heres the round start part of the script. the part that teleports the players.
function m_fnHandleActiveGame()
if (ActiveRound.Value == true and RoundTime.Value == m_iTimerLength) then
for i, player in ipairs(game.Players:GetChildren()) do
max = Model.GameBricks:GetChildren()
randomlocation = math.random(1,#max)
m_fnTeleportTo(max[randomlocation], player, i)
All help is appreciated.

2 comments
If you're wondering why line 2 has removed the == true portion, that is because conditionals default to true, therefore there isn't much a need to specify
thank you so much!