Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I want to spread players around a "Map"?

How can you set a table_variable that stores many positions, and teleports players to the positions? Randomly. This is done with cframe.new, and torso changing positioning I believe, but if I'm wrong please do correct me.

1 answer

Positions = {CFrame.new(0,0,0),CFrame.new(0,0,0),CFrame.new(0,0,0)} -- Positions (You will need as many positions as the max players in your game just to make sure it doesn't error)

for i,v in pairs(game.Players:GetPlayers()) do -- Gets the players
	v.Character.Torso.CFrame = Positions[i] -- Moves the player to one of the set positions
end

This is how you would do this, but this is not a request site so next time please attempt it first before posting.

~ Aaron

This discussion is preserved as it was. New answers, comments, and votes are closed.