-- Custom validation function that can be replaced by the developer

function TeleportToPlayer.validate(
	_playerToTeleport: Player,
	_destinationPlayer: Player,
	_teleportPoint: CFrame
): boolean
	return true
end

function TeleportToPlayer.setTeleportationValidator(newValidator)
	assert(typeof(newValidator) == "function", "setTeleportationValidator expects a function as its first argument")
	TeleportToPlayer.validate = newValidator
end

return TeleportToPlayer
