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

Player are not getting teleport to the location??

Hi I'm having a problem so I made a workspace model named "Teleports" and I made this minigame teleport script but it's not working here's the script:

	local players = game.Players:GetChildren()
	for i = 1,#players do
		if players[i].Character ~= nil then
			local spawnLocation = math.random(1,#workspace.Teleports:GetChildren())
			players[i].Character:MoveTo(workspace.Teleports:GetChildren()[spawnLocation].Position)
		end
	end
	

and in the output the it's saying Teleports can't be dectected may you guys find out why?

1 answer

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