Teleporters broken in recently updated games

I’ve been using the teleport service to teleport from different games to mine. The problem is that the code does work in most circumstances but it doesn’t work in recently updated games. It will either teleport you to the same place or crash the game.

local TeleportService = game:GetService("TeleportService")
local Place = 5112842651

script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid")then
		local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
		if Player then
			TeleportService:Teleport(Place,Player)
		end
	end
end)
2 Likes