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

after map loads, the game won't teleport the players?

local AvailableSpawnPoints = SpawnPoints:GetChildren()

for i, player in pairs(plrs) do
	if player then
		character = player.Character
		
		if character then
			-- teleport them
			
			character:FindFirstChild("HumanoidRootPart").Cframe = AvailableSpawnPoints[1].Cframe
			table.remove(AvailableSpawnPoints,1)

there is 10 spawn points on the map grouped together and stuff btw

1 comment

0

The reason is that "Cframe" is not a valid member of anything. Capitalize the F in CFrame, as that is just how syntax is in Roblox Lua.

1 answer

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