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

Script not teleporting player to the map anyone know why?

Okay so it works with the one player (the piggy) teleporting to the waiting area but the player doesnt go anywhere and i retyped the code 3 different times. here is the line of code that im talking about:

function module.TeleportPlayers(players, mapspawns)
	for i, player in pairs(players) do
		local character = player.Character
		
		if character:FindFirstChild("HumanoidRootPart") then
			
			player.Character.Humanoid.WalkSpeed = 16
			
			local rand = Random.new()
			player.Character.HumanoidRootPart.CFrame = mapspawns[rand.NextInteger(1,#mapspawns)].CFrame + Vector3.new(0,10,0)
		end
	end
end

return module

Please let me know if you know how to fix this.

2 comments

0

Any errors?

0

16:49:20.966 - Image " " failed to load in "Workspace.Map.Floor0.LivingRoom2.Image.Picture.Decal.Texture": Unexpected URL

1 answer

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